12 May
2007
12 May
'07
1:16 a.m.
I think I'm going to break my own rules and ask Martin to write up a PEP. Given the pragmatics that Windows pathnames *are* a common use case, I'm willing to let allow the trailing \ in the string. A regular expression containing a quote could be written using triple quotes, e.g. r"""(["'])[^"']*\1""". (A single " in a regular expression can always be rewritten as ["] AFAIK.) -- --Guido van Rossum (home page: http://www.python.org/~guido/)