Tuesday, April 29, 2014

Remove http:// in C# Windows Application

Here are a couple of alternatives

var str = "http://ift.tt/1flBr5D;;
var str1 = str.Substring(7);
var str2 = str.Split(new [] {"//"}, StringSplitOptions.None)[1];


No comments:

Post a Comment