A bug in Python's regular expression engine?

MonkeeSage MonkeeSage at gmail.com
Tue Nov 27 11:52:46 EST 2007


On Nov 27, 10:19 am, "Just Another Victim of the Ambient Morality"
<ihates... at hotmail.com> wrote:


>     That is funny.  Thank you for your help...
>     Just for clarification, what does the "r" in your code do?

It means a "raw" string (as you know ruby, think of it like %w{}):

This page explains about string literal prefixes (see especially the
end-notes):

http://docs.python.org/ref/strings.html

HTH,
Jordan



More information about the Python-list mailing list