Regex to find A and not B on a line

Posted by Zach on Stack Overflow See other posts from Stack Overflow or by Zach
Published on 2010-04-09T20:09:55Z Indexed on 2010/04/09 20:13 UTC
Read the original article Hit count: 148

Filed under:
|
|

I'm looking for a regex to search my python program to find all lines where foo, but not bar, is passed into a method as a keyword argument. I'm playing around with lookahead and lookbehind assertions, but not having much luck.

Any help?

Thanks

© Stack Overflow or respective owner

Related posts about regex

Related posts about textmate