Regular Expressions 101

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

Open Workspace
  • JavaScript
  • Match
11

Regular Expression

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

Description

YourLink - not found AnotherLink - found

Submitted by KoT