Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
\[class\*=(?:"|')?(.*?)(?:"|')?\]
/
g

Description

Example [class*="container"] → .container

Submitted by pustur - 7 years ago