Hi,
I'm wanting to replace characters in a string which occure on more than 1 occasion, so for example if I have the following string.
XXXYYYYXXZZXXXXXUUU
So is there a function I can use to replace say 2 x's with the letter 'W' and 3 x's with the letter 'R' for example? but if there are 5 X's like in the example could this be replaced with the letters 'WR'
I had a look at all the string functions in the help file but I cant find anything that would be suitable. I essentially need to search the string starting from the beginning for the occurances because the string can change depending on some variables from the user.
Thanks