Skip to content

Instantly share code, notes, and snippets.

@aa21
Created January 19, 2016 04:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aa21/ea616045fe9a00ba683d to your computer and use it in GitHub Desktop.
Save aa21/ea616045fe9a00ba683d to your computer and use it in GitHub Desktop.
# Word not in string
^((?!cat).)*$ <-- Match sentence not containing 'cat'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment