Regular Expressions 101

Community Patterns

Community Library Entry

0

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

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

Description

matches href, title, innerhtml

Submitted by chrysls