substitution

superpollo utente at esempio.net
Mon Jan 18 11:15:37 CET 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