Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
ECMAScript (JavaScript)

/
^(?![\S\s]*should not exist)
/
i

Description

This will make sure a certain regex does not exist in a block of text, that includes new lines

Submitted by Mandeep Rai - 8 years ago