Click to See Complete Forum and Search --> : Removing Character from String


SteveS
September 18th, 2001, 01:57 PM
I have a string on a VBScript ASP page and I want to remove all occurances of a specific character. I cannot find the function that does this.

For example, if I have "Cat-dog-mouse" and I want to remove all '-' characters so I have "catdogmouse". The MSDN documentation isn't being very helpful right now as the function that does this does not appear to be listed.

Thanks

Iouri
September 18th, 2001, 02:44 PM
Try to use Replace function

Replace(string1,"-","")'-put "" in string 1 instead of "-"

Iouri Boutchkine
iouri@hotsheet.com