ignore specific data

Mike Meyer mwm at mired.org
Mon Nov 21 15:43:51 EST 2005


pkilambi at gmail.com writes:

> thanks for that. But this will check for the exact content of the
> "start of block......" or "end of block". How about if the content is
> anywhere in the line?

Then the test is '"start of block....." in line'. You could also use
the line.find or line.index methods, but those don't return booleans,
and so require some extra work to get what you want.

     <mike
-- 
Mike Meyer <mwm at mired.org>			http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.



More information about the Python-list mailing list