Regular Expressions 101

Community Patterns

4

import url image

Python
import url image
Submitted by bartimeys - 8 years ago

Remove XML whitespace

0

Regular Expression
PCRE2 (PHP >=7.3)

/
(?<=>)\s*([^<]*[^\s<])\s*(?=<)|(?<=>)\s*
/
gm

Description

Loading markdown...
Submitted by anonymous - 4 months ago