Thursday, December 20, 2007

Regex for doesn't contain

^((?!my string).)*$ Is the regular expression for does not contain "my string". Wondering how someone can come up with that? Check out the reference at:
http://www.regular-expressions.info/refadv.html

There's a basic and advanced regular expression reference section so check out both!b

1 comment:

Jesse said...

Thank you, such a basic thing but I couldn't figure it out!