Skip to content

Instantly share code, notes, and snippets.

@heaversm
Created August 5, 2019 15:54
Show Gist options
  • Save heaversm/b51ca744c49cb9ca39b25c82f5a34586 to your computer and use it in GitHub Desktop.
Save heaversm/b51ca744c49cb9ca39b25c82f5a34586 to your computer and use it in GitHub Desktop.
useful regexes
//find all instances of [thing1] NOT followed by [thing2]:
^(?!.*thing2).*thing1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment