Skip to content

Instantly share code, notes, and snippets.

@jubianchi
Created July 31, 2012 09:01
Show Gist options
  • Save jubianchi/3215281 to your computer and use it in GitHub Desktop.
Save jubianchi/3215281 to your computer and use it in GitHub Desktop.
My Regexp
/^([^(?<!(?:ABC|DEF))\s].*)/
ABC|foo
DEF|foo
GHI|foo
JKL|foo
==> Matches all lines not starting with wors ABC or DEF
--------------------------------------------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment