Regular Expressions 101

Library entries

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

Vote

1

Regular Expression
pcre

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

Description

Loading markdown...
Submitted by anonymous - 6 years ago