quote:
Originally posted by deAd
Not really. You can use the String.replace function with a loop.
Although you indeed can, it is also a bit useless to do that. One should indeed use the regular expression syntax for replacing all occurences of a search string. This is even documented like that in the official MS JScript references.
PS: your example code for the loop will produce wrong results in certain cases. And actually shows why you should not use a loop like that to replace all occurences of a string.