Verilen URL bilgisinin geçerli olup olmadığını kontrol etmeye yarayan csharp kodudur.
public static bool URLGecerliMi(string url)
{
string pattern = @"/(http|ftp|https)://[\w-]+(\.[\w-]+)+([\w.,@?^=%&:/~+#-]*[\w@?^=%&/~+#-])?/";
Regex reg = new Regex(pattern, RegexOptions.Compiled | RegexOptions.IgnoreCase);
return reg.IsMatch(url);
}