Regular Expressions 101

Community Patterns

Remove br tags inside anchor tags

3

Regular Expression
PCRE (PHP <7.3)

/
<a ([^>]*)>([^<]*)(<\/?br\/?>)+([^<]*)<\/a
/
i

Description

no description available

Submitted by anonymous - 8 years ago