Regular Expressions 101

Community Patterns

1...34567...901

Community Library Entry

-2

Regular Expression
PCRE (PHP <7.3)

/
<\?xml [^?]*\?><(?<root>\w+)>(.*?)<\/\1>\n?
/
g

Description

as title says

Submitted by Doro - 10 years ago