Regular Expressions 101

Community Patterns

[attr=value] style

1

Regular Expression
PCRE (PHP <7.3)

/
\[ ([\w][\w-:]*) (?: \s*=\s* ( (?: " (?:"|[^"])*? " )| true| false| null ) )? \]
/
gx

Description

no description available

Submitted by David Rodrigues - 9 years ago