two or more whitespace regular expression?

Simon Brunning SBrunning at
Tue Sep 17 10:42:34 CEST 2002

> From:	Manuel Hendel [SMTP:manuel at]
> On Sun, Sep 15, 2002 at 07:33:50AM +0000, Alex Martelli wrote:
> > import re
> > twoormorewhites = re.compile(r'\s\s+')
>                                ^
> What is the "r" for? I tried to find something about this in the docs
> (Regular Expression HowTo , etc.) but I couldn't find anything.
It's a raw string - see

Simon Brunning
TriSystems Ltd.
sbrunning at

The information in this email is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this email by anyone else
is unauthorised. If you are not the intended recipient, any disclosure,
copying, distribution, or any action taken or omitted to be taken in
reliance on it, is prohibited and may be unlawful. TriSystems Ltd. cannot
accept liability for statements made which are clearly the senders own.

More information about the Python-list mailing list