Skip to content

Instantly share code, notes, and snippets.

@aa21
Created January 19, 2016 04:22

Revisions

  1. aa21 created this gist Jan 19, 2016.
    3 changes: 3 additions & 0 deletions Regex
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    # Word not in string

    ^((?!cat).)*$ <-- Match sentence not containing 'cat'