Regular Expressions 101

Community Patterns

nb - section with marginal note finder

0

Regular Expression
PCRE (PHP <7.3)

/
(?:<div\s+class=.?body[^>]*section[^>]+>)+\s*(?:<div[^>]+head-\d\s+sectionheading[^>]*>)(?:<span[^>]*>)?((?:<span[^>]*>)?(?:[^<]+)(?:<\/?span[^>]*>)?(?:[^<]+)(?:<\/?span[^>]*>)?)(?:<\/span>)?<\/div>(?:<span[^>]+>)?<span[^>]+label[^>]+>(?:<\/?(?:div|span|a)[^>]*>\s*)+([\d.]+)(?:(?:<\/a>)?<\/span>)
/
gis

Description

added experimental support for historical notes intercaleted between marginal note and section

Submitted by anonymous - 3 years ago