Regular Expressions 101

Community Patterns

Match a line that doesn't contain a word

0

Regular Expression
ECMAScript (JavaScript)

/
^(?:(?!hello).)*$
/
gm

Description

Match a line that doesn't contain a word

Submitted by xiaoyang - 2 years ago