Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Created·2020-12-14 17:55
Flavor·PCRE (Legacy)

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

Description

added experimental support for historical notes (?:<div[^>]+historicalnote[^>]*>[\w,.\s]+</div>)?

Submitted by anonymous