Regular Expressions 101

Library entries

Regex replace word in string if it is not a link

Vote

0

Regular Expression
pcre

/
\bAmazon\b(?!(?:(?!<\/?a\b[^>]*>).)*?<\/a>)
/
gm

Description

Loading markdown...
Submitted by anonymous - 2 months ago