Code Snippet
  1. private bool IsValidEmail(string strIn)
  2.         {
  3.             // Return true if strIn is in valid e-mail format.
  4.             return Regex.IsMatch(strIn, @"^([\w-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([\w-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$");
  5.         }