[EMAIL PROTECTED] 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 <[EMAIL PROTECTED]> http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. -- http://mail.python.org/mailman/listinfo/python-list