Interview Question for Software Engineer / Developers
- 0of 0 votes
Suppose I am given a set of input strings input(five of them) and their corresponding replacement strings replace. Then I am given an input text, how can I replace the strings in the text matching any of the inputs with their corresponding replacements.- mikewhity October 16, 2014 in United States
Also I have to make sure that if suppose, I find a match input and I replace it by replace, then because of that it could be possible that I have a new match for input lets say because of the new characters added by replace. I don't want to make replacements with replace.
| Report Duplicate | Flag | PURGE
Software Engineer / Developer Replacing multiple string occurences from a text
Open Chat in New Window