http://www.vkeong.com/2008/food-drink/nasi-lemak-wai-sik-kai-kepong-baru/ Hi, how to get the 'nasi-lemak-wai-sik-kai-kepong-baru' from this hyperlink using C#?
Thanks.
http://www.vkeong.com/2008/food-drink/nasi-lemak-wai-sik-kai-kepong-baru/ Hi, how to get the 'nasi-lemak-wai-sik-kai-kepong-baru' from this hyperlink using C#?
Thanks.
Use the Segments property of the URI class
URI uri = new URI("http://www.example.com/alpha/beta/gamma"); foreach(string s in uri.Segments) { Console.Writeline(s); } For that specific string I'd use the String.Substring(int offset, int length) method.
url.Substring(38, 14);