This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

can anybody give me simple complete code for email validation using Regular Expression?

 
Mohan Mehra
Ranch Hand
Posts: 74
 
Stephan van Hulst
Bartender
Pie
Posts: 5420
52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm sure people can, but I don't think anybody will.

What's stopping you from trying it yourself?
 
John Wetherbie
Rancher
Posts: 1449
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Give it a good try first and if you run into problems post your code. Your post, correctly or incorrectly, gives people the impression you want them to do your homework for you.
 
Paul Clapham
Sheriff
Pie
Posts: 20771
30
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Warning to others: my computer's security system won't allow me to connect to the link in the original post, saying it's a "security risk".

As for validating an e-mail address, I recommend that you don't do that. If the users want to give you their e-mail addresses, you don't need to validate them. They are going to give you a correct and well-formed address. Just send a confirmation e-mail to whatever the user gives you to confirm that you do indeed have the correct address.
 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is such a common thing I don't know why....

1. you didn't just google for the answer
2. we feel like this is doing work for you

See the accepted answer here
 
Mohan Mehra
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i already marked this question as resolved before you all answered. i got it .
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic