> Just to throw this out into the mix we have a Java class (and
> UDF library) for validating email addresses at:
> http://www.cfdev.com/email/
>
> Besides checking syntax, and all valid TLD's it can also do a
> MX lookup
> (DNS) to validate that the domain is indeed valid. And if you
> want t
ECTED]
Subject: RE: [ cf-dev ] Regular Expression for Email and Domain checking
- it works!
Spike,
> *snip*
>
> So this could be:
>
> ( This is an email address )paul( an end &&^%%% to the
> "$%£$%£ email address as a comment \sdfsdfsdf )@pjnetsolutions.com
>
&g
Spike,
> *snip*
>
> So this could be:
>
> ( This is an email address )paul( an end &&^%%% to the
> "$%£$%£ email address as a comment \sdfsdfsdf )@pjnetsolutions.com
>
> Which you'll plainly agree is valid but completely silly!
>
> Taking the local-part quoted-string idea you could have:
>
>
dFusion MX: Intranets and Content
Management'
http://spikefu.blogspot.com
> -Original Message-
> From: Paul Johnston [mailto:[EMAIL PROTECTED]]
> Sent: 28 January 2003 16:00
> To: [EMAIL PROTECTED]
> Subject: RE: [ cf-dev ] Regular Expression for Email and
> Domain checki
Spike,
At the risk of losing everyone else on the list... See inline:
> Hmmm...
>
> According to the definition I'm looking at, local-part consists of:
>
> dot-atom / quoted-string / obs-local-part
Agreed. I took the dot-atom approach
> dot-atom allows:
>
> [CFWS] dot-atom-text [CFWS]
So t
mail address to work.
my 2p
Spike
Stephen Milligan
Team Macromedia - ColdFusion
Co-author 'Reality Macromedia ColdFusion MX: Intranets and Content
Management'
http://spikefu.blogspot.com
> -Original Message-
> From: Paul Johnston [mailto:[EMAIL PROTECTED]]
> Sent:
> Maybe not necessary, but it would be good to have..you then
> would have a 100% compliant code snippet!
Maybe soon...!
I have a whole website on regexes that I'm still writing so, maybe I'll add
it to that when I have the time and explain what I've done and how it works!
Paul
PS the website
Maybe not necessary, but it would be good to have..you then would have a
100% compliant code snippet!
-Original Message-
From: Paul Johnston [mailto:[EMAIL PROTECTED]]
Sent: 28 January 2003 15:07
To: [EMAIL PROTECTED]
Subject: RE: [ cf-dev ] Regular Expression for Email and Domain
Spike,
> Not wanting to rain on the parade, but are you sure that the
> regex will not reject some valid email addresses with folding
> whitespace inside commments?
>
> Also an email address of the form:
>
> "Paul Johnston" <[EMAIL PROTECTED]> is perfectly
> valid according to rfc2822, but I
gspot.com
> -Original Message-
> From: Paul Johnston [mailto:[EMAIL PROTECTED]]
> Sent: 28 January 2003 14:28
> To: [EMAIL PROTECTED]
> Subject: RE: [ cf-dev ] Regular Expression for Email and
> Domain checking - it works!
>
>
> I found a bug... It validates [E
>
> Cheers Paul, this is cracking... I gather as a .cfm it will
> work OK as a CT for CF45? (don't ask, we have to use it for
> one application!)
>
Yes. There is nothing in the regular expression that will make it break in
cf4.5 (as far as I'm aware) so you can just copy the code in the functi
gular Expression for Email and Domain checking
- it works!
I found a bug... It validates [EMAIL PROTECTED]
Need to update the tld list with co.uk and com.uk and ltd.uk etc instead of
the simple uk one!
I'll put an update on website!
Paul
---
Paul Johns
I found a bug... It validates [EMAIL PROTECTED]
Need to update the tld list with co.uk and com.uk and ltd.uk etc instead of
the simple uk one!
I'll put an update on website!
Paul
---
Paul Johnston
PJ Net Solutions Ltd
http://www.pjnetsolutions.com
[EMAIL P
> I don't know very much (i.e. nothing) abut regular expression
> so excuse my ignorance...
>
> If my e-mail address is validated then why do you have
>
> com|co[.]uk|net|org|com[.]uk)$
>
> at the end and not .name?
>
> Giles
Giles,
You're right that if there was nothing else it should not
Okay... For all you smarty pants out there who think it's not quite right,
here is an updated version WITH all tld's in it:
function isValidEmail(emailstr) {
regex_tldList =
".ac|.ad|.ae|.af|.ag|.ai|.al|.am|.an|.ao|.aq|.ar|.ar|.as|.at|.au|.aw|.az|.ba
|.bb|.bd|.be|.bf|.bg|.bh|.bi|.biz|.bj|.
ECTED]]
Sent: 28 January 2003 13:51
To: '[EMAIL PROTECTED]'
Subject: RE: [ cf-dev ] Regular Expression for Email and Domain checking
- it works!
Its also not 100% correct as it will validate [EMAIL PROTECTED] as a correct
email
and no, it states [EMAIL PROTECTED] is TRUE.
N
-O
aw dang... I didn't read the email properly... sorry!
- Original Message -
From: "Damian Watson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 28, 2003 2:10 PM
Subject: Re: [ cf-dev ] Regular Expression for Email and Domain checking -
it wor
them)
- Original Message -
From: "Robertson-Ravo, Neil (RX)" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 28, 2003 1:43 PM
Subject: RE: [ cf-dev ] Regular Expression for Email and Domain checking -
it works!
> Holy shitnic
why does the original post validate [EMAIL PROTECTED] ?
-Original Message-
From: Paul Johnston [mailto:[EMAIL PROTECTED]]
Sent: 28 January 2003 14:06
To: [EMAIL PROTECTED]
Subject: RE: [ cf-dev ] Regular Expression for Email and Domain checking
- it works!
Look... This will validate
3:54
> To: [EMAIL PROTECTED]
> Subject: RE: [ cf-dev ] Regular Expression for Email and
> Domain checking - it works!
>
>
> I think that that would fail on [EMAIL PROTECTED] though
> wouldn't it?
>
> -Original Message-
> From: Paul Johnston [mailto:[EMAI
From: Robertson-Ravo, Neil (RX)
> [mailto:[EMAIL PROTECTED]]
> Sent: 28 January 2003 13:51
> To: '[EMAIL PROTECTED]'
> Subject: RE: [ cf-dev ] Regular Expression for Email and
> Domain checking - it works!
>
>
> Its also not 100% correct as it will v
Expression for Email and Domain checking -
it works!
Everyone,
For those that can't be bothered to read to the bottom here is the regular
expression for validating an email address:
^[a-zA-Z0-9!##\$%&''\*\+-/=\?\^_`\{\|}~]+([.][a-zA-Z0-9!##\$%&''\*\+-/=\?\^_
`\{\|}~]+)
I think that that would fail on [EMAIL PROTECTED] though wouldn't it?
-Original Message-
From: Paul Johnston [mailto:[EMAIL PROTECTED]]
Sent: 28 January 2003 13:47
To: [EMAIL PROTECTED]
Subject: [ cf-dev ] Regular Expression for Email and Domain checking -
it works!
Everyone,
For
Holy shitnice one... very nice indeed.
-Original Message-
From: Paul Johnston [mailto:[EMAIL PROTECTED]]
Sent: 28 January 2003 13:47
To: [EMAIL PROTECTED]
Subject: [ cf-dev ] Regular Expression for Email and Domain checking -
it works!
Everyone,
For those that can'
Everyone,
For those that can't be bothered to read to the bottom here is the regular
expression for validating an email address:
^[a-zA-Z0-9!##\$%&''\*\+-/=\?\^_`\{\|}~]+([.][a-zA-Z0-9!##\$%&''\*\+-/=\?\^_
`\{\|}~]+)*@([a-z0-9]([-]|[a-z0-9])*[a-z0-9][.])+(([a-z0-9]([-]|[a-z0-9])*[a
-z0-9])|com|co
25 matches
Mail list logo