RegEX for Email

Discussion in 'ASP .Net Web Controls' started by Ben, Jan 31, 2007.

  1. Ben

    Ben Guest

    Hi All,
    I am using a regular expression for validating an email field.
    ValidationExpression="\S+@\S+\.\S+"

    This validates if the @ and . are missing but I need a more tight
    validation - only 1 @ should be there etc.

    Any help is greatly appreciated.

    P.S I would have researched this more on my own but am under a tight
    deadline for getting a module completed in the next few hours.

    Thanks,
    Ben


    *** Sent via Developersdex http://www.developersdex.com ***
    Ben, Jan 31, 2007
    #1
    1. Advertising

  2. Ben

    Riki Guest

    www.regexlib.com

    --

    Riki

    "Ben" <> wrote in message
    news:...
    >
    > Hi All,
    > I am using a regular expression for validating an email field.
    > ValidationExpression="\S+@\S+\.\S+"
    >
    > This validates if the @ and . are missing but I need a more tight
    > validation - only 1 @ should be there etc.
    >
    > Any help is greatly appreciated.
    >
    > P.S I would have researched this more on my own but am under a tight
    > deadline for getting a module completed in the next few hours.
    >
    > Thanks,
    > Ben
    >
    >
    > *** Sent via Developersdex http://www.developersdex.com ***
    Riki, Feb 2, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?SmViQnVzaGVsbA==?=

    Is ASP Validator Regex Engine Same As VS2003 Find Regex Engine?

    =?Utf-8?B?SmViQnVzaGVsbA==?=, Oct 22, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    696
    =?Utf-8?B?SmViQnVzaGVsbA==?=
    Oct 22, 2005
  2. Rick Venter

    perl regex to java regex

    Rick Venter, Oct 29, 2003, in forum: Java
    Replies:
    5
    Views:
    1,620
    Ant...
    Nov 6, 2003
  3. Replies:
    2
    Views:
    595
  4. Xah Lee
    Replies:
    1
    Views:
    938
    Ilias Lazaridis
    Sep 22, 2006
  5. Replies:
    3
    Views:
    746
    Reedick, Andrew
    Jul 1, 2008
Loading...

Share This Page