Simple email validation





ranking Sort Sort   |   date Sort Sort   |   member Sort Sort
Syndication

10
Date Submitted Mon. Oct. 10th, 2005 10:49 AM
Revision 1
Coder mattrmiller
Tags "Email Address" | MX | PHP | Validate
Comments 1 comments
Validate Email Address Against MX
-7
Date Submitted Thu. Oct. 13th, 2005 7:34 PM
Revision 1
Coder mattrmiller
Tags "Email Address" | CPlusPlus | Validate
Comments 4 comments
Validate Email Address
6
Date Submitted Sun. Oct. 30th, 2005 9:12 PM
Revision 1
Coder mattrmiller
Tags "Email Address" | ColdFusion | Validate
Comments 0 comments
Validate Email Address
9
Date Submitted Fri. May. 26th, 2006 11:16 AM
Revision 2
Coder mattrmiller
Tags "Email Address" | Java | String | Validate
Comments 2 comments
Fixed the regular expression to check for more strict requirements.
13
Date Submitted Fri. Jun. 23rd, 2006 10:19 AM
Revision 1
Coder mattrmiller
Tags Authentication | Email | PHP | SMTP
Comments 0 comments
I needed to send an email through an authenticated SMTP server. I found the snippet on the PHP website to do the trick.
12
Date Submitted Tue. May. 9th, 2006 9:36 AM
Revision 1
Helper jpinkham
Tags Email | Java | Validate
Comments 1 comments
Another solution recommends using a text match pattern.
This works, but as long as you've got mail.jar in your classpath anyway, you might as well use this technique instead. (Plus, I think it works with older JDK 1.2+, whereas pattern.compile is 1.4+)

Note that it also accepts a comma-separated list of emails, just like a To: or CC: address line would.
5
Date Submitted Fri. Nov. 3rd, 2006 12:07 PM
Revision 1
Helper jarfil
Tags "Command Line" | Perl
Comments 2 comments
I've found it kind of complicated to strip newline chars from a file with just the commandline. This tiny piece of code does just that.

I've found it especially useful when extracting tabulated data from a grabbed site where each cell is on a different html line. This way I can pre-filter the html, remove the newlines, and insert them again at register boundaries (row end in this case), so that with just a couple more replacement from within a regex enabled text editor I can copy&paste it directly to a database.
2
Date Submitted Thu. Feb. 28th, 2008 4:10 PM
Revision 1
Helper inxilpro
Tags "Regular | Expression" | regex | RegExp
Comments 1 comments
This is as close to a perfect URL regular expression as I've come. It's based on RFC 3986.

A few caveats:

It only accepts http/https/ftp URLs by design, but you could change that to accept any valid URI pretty easily.

It doesn't support IP-based URLs or authenticated URLs. This is also by design, but you could change that with a little work.
-11
Date Submitted Thu. Sep. 28th, 2006 3:43 PM
Revision 1
Helper ffxfiend
Tags "php" | PHP | phpcode | RegExp
Comments 1 comments
This is a faily simple function to validate a URL being passed into your scripts. It will allow for http, https, and ftp. The beginning www. of a URL is optional as well. It will also validate if you have an IP address in place of the domain name. I'm sure this can be improved upon as this is my first attempt at regular expressions but it has worked good for me so far. Please comment or improve if your able.

Thanks!
5
Date Submitted Tue. Sep. 4th, 2007 10:24 PM
Revision 1
Helper explode
Tags Email | PHP | regex | Validate
Comments 1 comments
This is a simple function to check if an email is valid or not.