How do I make this code print lines NOT containing the string 'Domains'?

import re
for line in log:
    if re.search (r'Domains:', line):
        print line


This does not work...

if re.search != (r'Domains:', line):
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to