[Tutor] Quick question,

Hugo González Monteverde hugonz-lists at h-lab.net
Fri Apr 7 19:06:40 CEST 2006


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

It is not specific to regular expressions, it is called a raw string.

http://docs.python.org/tut/node5.html


More information about the Tutor mailing list