Regular Expressions 101

Community Patterns

Match links in html

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