When does the escape character work within raw strings?

Steven D'Aprano steve at REMOVE-THIS-cybersource.com.au
Fri May 22 11:34:09 EDT 2009


On Fri, 22 May 2009 15:29:16 +0000, Steven D'Aprano wrote:

> But if you forget that Python uses backslash escapes in strings, and
> just write "\b", then the compiler creates the string chr(8) (BEL),
> which has no special meaning to the RE engine.

Correction: \b is BACKSPACE, not BELL. \a is BELL.



-- 
Steven



More information about the Python-list mailing list