Community Patterns

Community Library Entry

0

Regular Expression
Created·2016-02-21 22:32
Flavor·ECMAScript (JavaScript)

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

Description

matches href, title, innerhtml

Submitted by chrysls