regular expression validator

Discussion in 'ASP .Net' started by Maziar Aflatoun, Nov 26, 2005.

  1. Hi,

    I haven't used RE for some time now and my RE is a little rusty :). I have
    the following regular expression to validate emails

    \w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*

    How would I modify this to allow spaces (0+) at the end of the email? And
    what does ([-.]\w+)* mean together?

    Thanks
    Maz.
     
    Maziar Aflatoun, Nov 26, 2005
    #1
    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. Brian Vallelunga
    Replies:
    2
    Views:
    8,297
    Brian Vallelunga
    Jul 31, 2003
  2. VSK
    Replies:
    2
    Views:
    2,305
  3. Bryce Budd

    Regular Expression Validator

    Bryce Budd, Sep 18, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    576
    Brian Davis
    Sep 18, 2003
  4. Simple Simon
    Replies:
    2
    Views:
    4,347
    Simple Simon
    Nov 4, 2003
  5. Edward
    Replies:
    0
    Views:
    830
    Edward
    Dec 4, 2003
Loading...

Share This Page