Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Python

r"
^(?!hello|you$)
"

Description

exclude a list of words, in this case, "hello" and "you"

Submitted by Z - 9 years ago