Identifying unicode punctuation characters with Python regex
jhermann
Juergen.Hermann at 1und1.de
Wed Nov 19 06:36:26 EST 2008
> >>> P=P.replace('\\','\\\\').replace(']','\\]') # escape both of them.
re.escape() does this w/o any assumptions by your code about the regex
implementation.
More information about the Python-list
mailing list