Regular Expressions 101

Community Patterns

extract xml fragments from text

0

Regular Expression
PCRE2 (PHP >=7.3)

/
<([\w_-]*)>.*?<(\/\1)>
/
sg

Description

maybe useful if you want to enrich e.g. markup with xml fragments and analyse them (e.g. joplinApp with RestApi)

Submitted by cookyr - 2 years ago