Regular Expressions 101

Community Patterns

Match hrefs of a tags

1

Regular Expression
PCRE (PHP <7.3)

/
<a[^>]+href="(\S+)"[^>]*>.+?<\/a>
/
g

Description

no description available

Submitted by Panagiotis Rompolas - 8 years ago