public static bool ValidateUrl(string url) { if (url == null || url == "") return false; Regex oRegExp = new Regex(@"(http|ftp|https)://([\w-]+\.)+(/[\w- ./?%&=]*)?", RegexOptions.IgnoreCase); return oRegExp.Match(url).Success; }
public static bool ValidateUrl(string url) { if (url == null || url == "") return false; Regex oRegExp = new Regex(@"(http|ftp|https)://([\w-]+\.)+(/[\w- ./?%&=]*)?", RegexOptions.IgnoreCase); return oRegExp.Match(url).Success; }