Community Patterns

Community Library Entry

0

Regular Expression
Created·2021-03-24 21:48
Flavor·PCRE2 (PHP)

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

Description

A RegEx for find out the match of the text in between a tag and href attribute value.

Submitted by Mosrur