I have a one String in classic asp.
Dim str
str = "http://stackoverflow.com/questions/ask/code-classic-asp-in-linux"
In above string, I want text after "code" by using split() in Classic asp.
Result should be: "-classic-asp-in-linux"
Neil is right. But in VBScript IndexOf
equivalent is InStr
.
Dim str
str = "http://stackoverflow.com/questions/ask/code-classic-asp-in-linux"
'Split
Response.Write Split(str,"-", 2)(1) ' classic-asp-in-linux
'Mid & InStr
Response.Write Mid(str, InStr(str, "-")) ' -classic-asp-in-linux