![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.python archiveRe: quoting strings
From: Fredrik Lundh <fredrik@pythonware.com>
Date: Tue Jan 31 2006 - 14:49:31 CET
Michal Duda wrote:
> is any equivalent to perl "quotemeta" function in python?
s = re.escape(s)
> I know that I can use this on string: r'\\test'
your example is a string literal, which isn't really the same thing as
</F>
|