Browse posteets
About
Contact us
Log In
Register
View: validate email
validate email
4 months ago
by
sx
/*method validateMail*/
public
bool
validateMail
(
string
Mailadress
)
{
string
mailPattern =
@"^[\w\._]{1,}@[\w\._]{2,}\.\w{2,4}$”;
Regex re = new Regex(mailPattern);
Match ma = re.Match(Mailadress);
if (ma.Success)
return true;
else
return false;
}
c#
email
validate
View source
0 comment
about "validate email"
Tags
c#
email
validate
0 comment about "validate email"