Regexp Over Multiple Lines

Bengt Richter bokr at oz.net
Wed Sep 4 16:38:39 EDT 2002


On 4 Sep 2002 08:40:22 -0700, vetter at lincom-asg.com (Keith) wrote:

>In Python can I have a regular expression that spans multiple lines...
Yes, see X flag on

    http://www.python.org/doc/current/lib/node99.html

and read about the re module at

    http://www.python.org/doc/current/lib/module-re.html

wherefrom you can find the syntax at

    http://www.python.org/doc/current/lib/re-syntax.html

etc. etc. It should look familiar.

[...]

Regards,
Bengt Richter



More information about the Python-list mailing list