arnodel at googlemail.com
Thu Mar 13 21:31:00 CET 2008
On Mar 13, 8:22 pm, "Andrew Rekdal" <<nospam>@comcast.net> wrote:
> in your expression above..
> >>> r = re.compile(r'/\*(.*?)\*/')
> what does the 'r' do?
It means the literal is a 'raw string' :
>>> print 'Hi\nthere!'
>>> print r'Hi\nthere!'
If you haven't done so already, I suggest reading the tutorial. Here
is a link to the relevant section on strings:
More information about the Python-list