Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP 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: 6083
71
  • 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
Posts: 21314
32
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
Ranch Hand
Posts: 15304
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