On Mon, Jul 27, 2009 at 4:02 PM, Alan Gauld<alan.gauld at btinternet.com> wrote: > You might want to investigate the maketrans and translate functions in the > string module. > > The seem to be quite similar in intent to what you are trying to do? No, those will only do 1-for-1 character substitutions. Kent