Regular Expressions 101

Community Patterns

HTML tag attributes (with match groups for '/")

0

Regular Expression
PCRE (PHP <7.3)

/
(\S+)=(?'enclosure'[\"\'])?((?:.(?!(?P=enclosure)?\s+(?:\S+)=|\s*\/?(?P=enclosure)))+.)(?P=enclosure)?
/
gm

Description

no description available

Submitted by anonymous - 3 years ago