Skip to content

Instantly share code, notes, and snippets.

@HungYuHei
Created September 12, 2012 09:11
Show Gist options
  • Save HungYuHei/3705441 to your computer and use it in GitHub Desktop.
Save HungYuHei/3705441 to your computer and use it in GitHub Desktop.
正则表达式匹配不包含指定字符串
// exclude foo_bar
^(?!.*?foo_bar).*?$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment