^(?!.*bar).*foo
(?!.*bar)^.*foo
http://stackoverflow.com/questions/2610581/regex-to-find-a-and-not-b-on-a-line
No comments:
Post a Comment