regular expression email c# code example

regular expression email c#

1

1 Example

0
public bool IsValid(string emailaddress)
{
    try
    {
        MailAddress m = new MailAddress(emailaddress);

        return true;
    }
    catch (FormatException)
    {
        return false;
    }
}
by on

Other Code Examples