idiom for RE matching

memracom at yahoo.com memracom at yahoo.com
Sun Jul 22 16:05:10 EDT 2007


On 19 Jul, 05:52, Gordon Airporte <JHoo... at fbi.gov> 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




More information about the Python-list mailing list