backslash in regular expression problem
Michael Hudson
mwh21 at cam.ac.uk
Fri Jun 30 20:37:42 EDT 2000
Keith Murphy <kpmurphy at my-deja.com> writes:
> what if instead of having '\\stuff' you have a str = '\\stuff' ?
>
> i know that you can print r'\\stuff' but you can't print rstr...
>
> how do you use the raw with a variable?
You don't. You do know about re.escape? Asking that question
suggests you might not...
Cheers,
M.
--
I saw `cout' being shifted "Hello world" times to the left and
stopped right there. -- Steve Gonedes
More information about the Python-list
mailing list