Regular Expressions 101

Community Patterns

exclude a list of words

0

Regular Expression
Python

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

Description

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

Submitted by Z - 8 years ago