You can split it on
.
:string url = "www.abc.com/files.zip";
string lastPart = url.Split(new char[] {'.'}).Last()
lastPart == "zip"
Technology, Music, & Culture Blog
.
:string url = "www.abc.com/files.zip";
string lastPart = url.Split(new char[] {'.'}).Last()
lastPart == "zip"
0 comments:
Post a Comment