in reply to Re: Replacing letters in one string based on another
in thread Replacing letters in one string based on another

But BrowserUk's approach will work for any two strings (Update: assuming, as GrandFather points out, that the two strings are identical except for the Xs), while your solution depends on the particular structure of the strings given in the example of the OP.

  • Comment on Re^2: Replacing letters in one string based on another