-
Matches strings not containing
foo. (fast)/(?:[^f]+|f(?!oo))*/
-
Matches strings not containing
PATTERN(slow).smodifier is required if the.can match a new line./(?:(?!PATTERN).)*/s
Created
February 10, 2012 23:13
-
-
Save colinux/1793893 to your computer and use it in GitHub Desktop.
Regex to match a string which does not contain another string or pattern
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment