Dear Monks,
I was wondering if anybody would have an elegant solution to replacing letters in one string based on the occurrence of a letter in another.
I have two strings
str1 = "ABCXXFGH"
str2 = "XXCDEFGH"
and I would like to output
str3 = "XXCXXFGH"
Thanks for any pointers,
Cheers
Iain