Flyzone wrote:
> Hello,
> i have again problem with regexp :-P
> I need to match all lines that contain one word but not contain
> another.
> Like to do "grep one | grep -v two:"

You don't need a regexp:;

     if 'one' in line and 'two:' not in line:
         ... do something...

STeVe
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to