Regular Expressions 101

Community Patterns

StackOverflow answer for: How can I parse an attribute string to an ar

1

Regular Expression
PCRE (PHP <7.3)

/
(?:\s*(\w+)\s*=\s*(?:'((?:[^'\\]|\\")*)'|"((?:[^"\\]|\\")*)"?|(\w+)))
/
g

Description

no description available

Submitted by anonymous - 9 years ago