• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

regular expression

 
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Hi List[],

Please help me regarding this
JavaScript e-mail validation using reqular expression.

Thanks
 
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What validation did you expect? Just the @ and the dot? Or a bit more? The top level domains? Or even the existence of the domain name?

At any way, good thing to know is that Javascript´s regex is borrowed from Perl which is (very) commonly used. So you could just google the "usual" regexp patterns for that and use it.

Also see http://www.regular-expressions.info/javascript.html
And http://www.regular-expressions.info/email.html

The linked site is in general quite useful if you want to learn about regexps. Bookmark it.
 
reply
    Bookmark Topic Watch Topic
  • New Topic