Please explain the Regular expression to validate the Email

Home Forums General Programming C# Please explain the Regular expression to validate the Email

This topic contains 0 replies, has 1 voice, and was last updated by  Shalabh 5 years, 1 month ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #4613

    Shalabh
    Participant

    Can anyone explain the following code specially regular expression. In this code i am using to validate the email address.

    [code title=”C#”] try {
    strIn = Regex.Replace(strIn, @”(@)(.+)$”, this.DomainMapper,
    RegexOptions.None, TimeSpan.FromMilliseconds(200));
    }
    catch (RegexMatchTimeoutException) {
    return false;
    }[/code]

    Thanks
    Shalabh

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.