Regular Expressions 101

Library entries

Element's Attribute Value in XML (simple)

Vote

4

Regular Expression
pcre

/
<child\s+[^<]*?attr2=[\'\"](?<value>[^<]*?)[\'\"]
/
g

Description

Loading markdown...
Submitted by Nikita Danilov - 7 years ago