I actually figured out an easier way...

Code:
While ($chr(124) $+ $chr(124) isin %text) { %text = $replace(%text,$chr(124) $+ $chr(124),$chr(124) $chr(124)) }


This runs through the loop twice (once doesn't work for some reason)...

It requires using $chr(124) rather than | because it thinks you are trying to launch a new line in the code.

I'm going to be using the text string for several operations after that, so using the gettok you provided 20 times in the script would get cumbersome smile

Thanks for the reply though! smile

Last edited by AltReality; 21/09/07 09:52 PM.