in reply to Re^2: how to search and replace the match with specific number of times in a stringin thread how to search and replace the match with specific number of times in a string
Or follow some other advice given in this thread...