Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
\s*<div\sid=\"title_feature_div[\s\S]*?<div\s*id=\"titleSection[\s\S]*?<span\s*id=\"productTitle[\s\S]*?>\s*([\s\S]*?)[\s]+<\/span>
/
gm

Description

\s*<div\sid="title_feature_div[\s\S]?<div\sid="titleSection[\s\S]?<span\sid="productTitle[\s\S]?>\s([\s\S]*?)[\s]+</span>

Submitted by anonymous - 6 years ago