Question: 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"**

Answer: 
Neil is right. But in VBScript `IndexOf` equivalent is `InStr`.

```vb
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

```
As an alternative.
If your URL scheme is fixed, then you can simply replace the fixed part to nothing.

```
Dim str 
str = "http://stackoverflow.com/questions/ask/code-classic-asp-in-linux"
str = Replace(str,"http://stackoverflow.com/questions/ask/code-","")
Response.write str

```