Regular Expressions 101

Library entries

find all link(<a>) tags expect your links in href attribute

Vote

11

Regular Expression
javascript

/
<(a+) (?!(?:href=(["|']+)([http:\/\/])*link\.com([\/])?(.*?)["|'])) *[^>]*>(.*?)[^>]>
/
gm

Description

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