Regular Expressions 101

Community Patterns

Regex to match lines having string1 and not having string3

0

Regular Expression
PCRE (PHP <7.3)

/
^(?!.*window\.).*\b(console\.log|alert\().*$
/
gm

Description

no description available

Submitted by Vivek Shah - 8 years ago