Please explain the Regular expression to validate the Email

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.