Showing posts with label Tips_And_Tricks. Show all posts
Showing posts with label Tips_And_Tricks. Show all posts

9/16/2012

Demo Code

 public static bool IsValidURL(string strURL)
{
    string regExPattern = @"^^(ht|f)tp(s?)\:\/\/[0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*(:(0-9)*)*(\/?)([a-zA-Z0-9\-\.\?\,\'\/\\\+&%\$#_=]*)?$";
    Regex re = new Regex(regExPattern);
    return re.IsMatch(strURL);
}
demo highlight foo bar

 

Demo Quote

Save And Share :

 
  • Followers