Regular Expressions 101

Library entries

Anchor tag text and herf attribute value

Vote

0

Regular Expression
pcre2

/
<a[^>]+href=[\"|\'](.*?)[\"|\'][^>]*>((?:.(?!\<\/a\>))*.)<\/a>
/
gm

Description

Loading markdown...
Submitted by Mosrur - 8 months ago