• 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

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..!!!
 
She said she got a brazillian. I think owning people is wrong. That is how I learned ... tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic