I have a parent
String - say "ABCHASOIOBBASJSKAKSLK" (something like that)
I get input from the user as what replacement must be made for what substring of the parent String.
The user might say 'replace BALL for B' and 'replace APPLE for A' and 'replace IOP for CHA'..... in the parent.
The problem happens when I do serial replacements.That is, when I'm done with my first replacement and proceed over to the second, replace causes all 'A's (including 'A's in the previously replaced 'BALL' also)to be replaced with 'APPLE'..and so on..but what I want to do is just do a replace for whatever is in the parent String. Thats it.
I hope you guys get me.. 'B' in the parent String must be replaced with 'BALL' and 'A's in the parent String alone must be replaced with 'APPLE', 'A' in 'BALL' must remain as such.
Any ideas??