Comment

Anonymous

your link does not work along with everything else on this page.

Parent comment

Peter Bengtsson

The short answer is:: if line.find('mystring') > -1: ....my_matched_function() The long answer is: http://docs.python.org/tut/node5.html#SECTION005120000000000000000