Community Patterns

Community Library Entry

11

Regular Expression
Created·2015-07-29 11:09
Flavor·ECMAScript (JavaScript)

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

Description

<a href="yourlink.com">YourLink</a> - not found <a href="anotherlink.com">AnotherLink</a> - found

Submitted by KoT