Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
(<Group id="\d+">\n\t\t\t<Name>)(\w+)_(\w+)(<\/Name>\n\t\t\t<Description>)([\w+\s]+)\s-\s([\w+\s]+)(<\/Description>)
/
gm

Description

Cambia de un alado a otro de "_" en <Name> y de un lado a otrode de " - " en <Description>

Submitted by anonymous - 5 years ago