Regexp Over Multiple Lines

Sean 'Shaleh' Perry shalehperry at attbi.com
Wed Sep 4 11:58:12 EDT 2002


On Wednesday 04 September 2002 08:40, Keith wrote:
> In Python can I have a regular expression that spans multiple lines...
> e.g. In Perl I may define a regular expression like:
>

yes you pass the re.compile() function an option of re.WHITESPACE as I recall 
(but check the docs to be sure of the exact option).




More information about the Python-list mailing list