Regular Expressions 101

Regex to match words or phrases in string but NOT match if part of a URL or inside <a> </a> tags

Open Workspace
  • Python
  • Match
0

Regular Expression

r"
Amazon(?![^<]*</a>)
"
gm

Description

Submitted by Anonymous