Regular Expressions 101

Community Patterns

1...34567...901

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
\s*<types>\s*(<members>.+<\/members>\s*)*<name>.*<\/name>\s*<\/types>
/
g

Description

This regex will find all the types definitions following the <types><members></members><name></name></types>

Submitted by Jerome Russ - 9 years ago