Regular Expressions 101

Negative Lookahead (?!)

Open Workspace
  • PCRE (Legacy)
  • Substitution
0

Regular Expression

/
box(?!-shadow)
/
gm

Description

Selects box only if what comes after is NOT -shadow

Submitted by Anonymous