[Tutor] Quick question,

Carlos Benevides carlos at carlosbenevides.com
Fri Apr 7 16:53:00 CEST 2006


Hi,

Can someone tell me what the r before the expression means, as in 
"re.compile(r'(\.exe|\.zip|\.pif|\.scr|\.ps|\.pdf|\.ppt)$')"?

I've seen regular expressions both ways, and I've seen them work with or 
without the r.  Just wondering what it does, or if it makes a difference.

Thanks.


More information about the Tutor mailing list