Extract part of URL

I have an URL similar to this one
/abc/xyz/def/zzz.php?id=111
I would like to extract the part after ?

Please suggest me some solution.

Thanks

you can use RegMatch or simple Split function:

Split(“/abc/xyz/def/zzz.php?id=111”,"?"c)(1).ToString

1 Like

partofURL = urlstring.Substring(urlstring.IndexOf("?")+1)

Thank you, it was pretty simple

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.