On 19 Jul, 05:52, Gordon Airporte <[EMAIL PROTECTED]> wrote: > I have some code which relies on running each line of a file through a > large number of regexes which may or may not apply.
Have you read and understood what MULTILINE means in the manual section on re syntax? Essentially, you can make a single pattern which tests a match against each line. -- Michael Dillon -- http://mail.python.org/mailman/listinfo/python-list