backslash in regular expression problem
Michael Hudson
mwh21 at cam.ac.uk
Fri Jun 30 20:37:42 EDT 2000
More information about the Python-list mailing list
Fri Jun 30 20:37:42 EDT 2000
- Previous message (by thread): PowerPoint slide presentation (Math + Python)
- Next message (by thread): backslash in regular expression problem
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message (by thread): PowerPoint slide presentation (Math + Python)
- Next message (by thread): backslash in regular expression problem
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list