Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
<div\sid=\"olpProductDetails[\s\S]*?<h1[\s\S]*?<div[\s\S]*?<span[\s\S]*?>[\s\S]*?\s*<\/span>\s*<\/div>\s*[\s\S]*?[\s]+<\/h1>[\s\S]*?<div\sid=\"olpProductByline\"[\s\S]*?>[\s\S]*?by\s([\s\S]*?)[\s]+<\/div>
/
gm

Description

no description available

Submitted by anonymous - 6 years ago