substitution

superpollo utente at esempio.net
Mon Jan 18 05:15:37 EST 2010


hi.

what is the most pythonic way to substitute substrings?

eg: i want to apply:

foo --> bar
baz --> quux
quuux --> foo

so that:

fooxxxbazyyyquuux --> barxxxquuxyyyfoo

bye



More information about the Python-list mailing list