Regular Expressions 101

Community Patterns

1...45678...902

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
\s*<div\sid=\"bylineInfo_feature_div[\s\S]*?<a[\s\S]*?\s*id=\"bylineInfo[\s\S]*?>\s*([\s\S]*?)<\/a>
/
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