OZONE Asylum
Forums
DHTML/Javascript
javascript email-checker
This page's ID:
29382
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
Validating e-mail addresses can't be done with a simple regular expression. One of the main problems with trying to validate an e-mail address with a regular expression is that the [url=http://www.ietf.org/rfc/rfc0822.txt]RFC[/url] for e-mail addresses allows almost any string you can think of as a valid address and if you use an expression that looks for the pattern /[a-z]+@[a-z]+\.(com|net|org)/, you will end up telling a lot of people with valid e-mail addresses that their address is invalid. As a quick example, I use a program called MailWasher to screen my e-mail before I get it from the server. MailWasher doesn't recognize that '+' is a valid character in an address and I'm getting more and more e-mails from mailing lists where people have decided to use '+' in their address. As a consequence, I get about five e-mails a day that MailWasher marks as being suspicious because it contains an invalid address. Take a look at the following links for a better description than I've given of how to validate e-mail addresses: [url=http://www.oreillynet.com/cs/user/view/cs_msg/11855]Regexp for validating an email address[/url] [url=http://www.oreillynet.com/cs/user/view/wlg/2379]How to Validate an E-mail Address[/url] [url=http://www.breakingpar.com/bkp/home.nsf/Doc?OpenNavigator&87256B280015193F87256C40004CC8C6]Valid Internet Email Address[/url]. [url=http://www.altavista.com/web/results?itag=ody&q=regexp++%2Bemail&kgs=1&kls=0]more reading[/url] . -- not necessarily stoned... just beautiful. [url=http://www.hyperbole-software.com/] [img]http://www.hyperbole-software.com/ozone/hyperbole-88x33.gif[/img] [/url]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »