wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes can anybody give me simple complete code for  email validation using Regular Expression? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "can anybody give me simple complete code for  email validation using Regular Expression?" Watch "can anybody give me simple complete code for  email validation using Regular Expression?" New topic
Author

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

Mohan Mehra
Ranch Hand

Joined: Jul 28, 2011
Posts: 70
using this link http://www.zparacha.com/validate-email-address-using-javascript-regular-expression/
Stephan van Hulst
Bartender

Joined: Sep 20, 2010
Posts: 3577
    
  14

I'm sure people can, but I don't think anybody will.

What's stopping you from trying it yourself?
John Wetherbie
Rancher

Joined: Apr 05, 2000
Posts: 1441
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.


The only reason for time is so that everything doesn't happen all at once.
- Buckaroo Banzai
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

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

Joined: Jul 11, 2001
Posts: 15299
    
    6

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


GenRocket - Experts at Building Test Data
Mohan Mehra
Ranch Hand

Joined: Jul 28, 2011
Posts: 70
i already marked this question as resolved before you all answered. i got it .
 
jQuery in Action, 2nd edition
 
subject: can anybody give me simple complete code for email validation using Regular Expression?
 
Similar Threads
How can I add error handling facilities to this code?
Jakarta RegExp - Email Validation
Regular Expression for EMail Validation
Avoiding regular expression in XML Schema
Please share any Java code to do email validation