Regular Expressions 101

Library entries

A HREF validation

Vote

1

Regular Expression
javascript

/
<a\s.*href\s?=\s?["'](\bmailto:\b|\bhttp:\/\/\b|\bhttps:\/\/\b).*["'].*?>.*?<\/a>
/
gi

Description

Loading markdown...
Submitted by thedotfactor - 6 years ago