Skip to content

Instantly share code, notes, and snippets.

@Xordal
Last active August 29, 2015 14:19
Show Gist options
  • Save Xordal/c1faf89d4db6773e8e2b to your computer and use it in GitHub Desktop.
Save Xordal/c1faf89d4db6773e8e2b to your computer and use it in GitHub Desktop.
Regexp: string not contain substring
regular: (?:(?!med).)
Example:
regular: a(?:(?!med).)*bb
data: amada, admeta, medbbsasdfbb
result: , , asdfbb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment