fork download
  1. import re
  2. print( re.findall(r"\b(?!(?:word1|word2)\b)\w+", "Extract all words but word1 and word2.") )
Success #stdin #stdout 0.02s 9512KB
stdin
Standard input is empty
stdout
['Extract', 'all', 'words', 'but', 'and']