Substring help

Posted by Sleeve on Sat 16 Nov 2002 07:36 AM — 2 posts, 13,410 views.

#0
I need to be able to remove a string that is in another string and I am just not familiar enough with VBScript yet to know how to do this. I can get the index of the string contained with InStr, but I don't know how to remove the string after. For example:

If I have the string "test:example:str", and I want to remove "example" from it, so that the result is "test::str" how would I do that?
Australia Forum Administrator #1
Look up the function world.replace - that will replace one string with another.