Regular Expressions 101

Community Patterns

1...34567...901

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

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

Description

matches href, title, innerhtml

Submitted by chrysls - 9 years ago