Skip to content

Instantly share code, notes, and snippets.

@jankowskib
Created February 21, 2015 13:24
Show Gist options
  • Save jankowskib/99f751364a33bc443341 to your computer and use it in GitHub Desktop.
Save jankowskib/99f751364a33bc443341 to your computer and use it in GitHub Desktop.
regex match with filter
^(?=.*?\bCONFIG_ARCH_SUN8IW.P.\b)((?!SUN8IW1P1).)*$
will find lines that match CONFIG_ARCH_SUN8IWXPX except CONFIG_ARCH_SUN8IW1P1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment