substitution

superpollo utente at esempio.net
Mon Jan 18 08:43:46 EST 2010


it looked simpler when i posted, but i realize that the problem is non 
trivial.

thanks to everybody.

i guess that the algorithm would be easier if it was known in advance 
that the string to substitute must have some specific property, say:

1) they all must start with "XYZ"
2) they all have the same length N (e.g. 5)

like this:

qweXYZ12asdXYZ1345XYZ ---> qweIWAS12asdIWAS1345XYZ

bye



More information about the Python-list mailing list