Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
<\s*a(\s+.*?>|>).*?<\s*\/\s*a\s*>
/
ig

Description

Matches all from <a... to </a>

Submitted by anonymous - 9 years ago