Multiple string replacement...
Simon Brunning
SBrunning at trisystems.co.uk
Fri Sep 22 10:32:33 EDT 2000
More information about the Python-list mailing list
Fri Sep 22 10:32:33 EDT 2000
- Previous message (by thread): Multiple string replacement...
- Next message (by thread): Multiple string replacement...
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> From: aahz at panix.com [SMTP:aahz at panix.com] > For this specific issue, just use string.translate(). For more complex > issues, you'll need to switch to regexes or parsers. > Aahz, Thanks for your feedback. (Thanks also to Emile and Mikael.) It won't always be single characters, I'm afraid - ROT13 was just the example that broke it. I suppose I'll have to look into regular expressions, then. (Looks at regular expression HOWTO.) Sigh. Cheers, Simon Brunning TriSystems Ltd. sbrunning at trisystems.co.uk Some people, when confronted with a problem, think 'I know, I'll use regular expressions'. Now they have two problems. - Jamie Zawinski, comp.lang.emacs ----------------------------------------------------------------------- The information in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorised. If you are not the intended recipient, any disclosure, copying, distribution, or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. TriSystems Ltd. cannot accept liability for statements made which are clearly the senders own.
- Previous message (by thread): Multiple string replacement...
- Next message (by thread): Multiple string replacement...
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list