Regular Expressions 101

exclude a list of words

Open Workspace
  • Python
  • Match
0

Regular Expression

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

Description

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

Submitted by Z