Win a copy of Head First Android this week in the Android forum!
  • 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:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

check email format validity

 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi guys...
i have this website where i want to check the validity for the email.Have any idea for a javascript that would do the following...
1) check for @ symbol
2) check for the dot symbol
3) i want the domain to be a specfic domain name. (important)
for example... my website domain name is "xyz.com.xy".... and inorder for a user to receive an email from my website they have to be a member. When a user becomes a member to my web site, thier email would be "userid@xyz.com.xy"....the userid can be of any length.
so when they would order any thing ..they will input their email address... but for that the email address should have the domain name "xyz.com.xy". How would i check that ... and ofcourse how would i check for the "@" and "." symbol. The occurance of the dot symbol should be twice and not once.
Any ideas for the above....!!!

:roll:
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I believe that this should do it, I did not test it.

Eric
 
Mehak Darti
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hey thannnnnkkksssssssssssss
thank u so much....Eric...it worked..!!!
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic