0

I am looking for a regular expression which would match everything, except a specific string. I have found a lot of examples which check if it contains a string, but I need it to be exact. So if the string is example:

  • example → does not match
  • whatever → matches
  • aexample → matches
  • examplea → matches
Fenikso
  • 9,251
  • 5
  • 44
  • 72

0 Answers0