Email ID validation in wpf

Email ID validation in wpf

String RegExpression = "\\w+([-+.']\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*";
System.Text.RegularExpressions.Regex TryRegValid = new System.Text.RegularExpressions.Regex(RegExpression);
if (TryRegValid.IsMatch(value.ToString()))
  {   }
  else
  {   }

Email ID validation in wpf Email ID validation in wpf Reviewed by Bhaumik Patel on 7:26 PM Rating: 5