Wednesday, July 28, 2010

Interesting regular expression!

Find foo or bar regardless of order:

^(?=.*?foo)(?=.*?bar).*?$