RE: [ cf-dev ] Regular Expression for Email and Domain checking - it works!

2003-01-29 Thread Paul Johnston
> 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

RE: [ cf-dev ] Regular Expression for Email and Domain checking - it works!

2003-01-28 Thread Pete Freitag
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

RE: [ cf-dev ] Regular Expression for Email and Domain checking - it works!

2003-01-28 Thread Paul Johnston
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: > >

RE: [ cf-dev ] Regular Expression for Email and Domain checking - it works!

2003-01-28 Thread Spike
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

RE: [ cf-dev ] Regular Expression for Email and Domain checking - it works!

2003-01-28 Thread Paul Johnston
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

RE: [ cf-dev ] Regular Expression for Email and Domain checking - it works!

2003-01-28 Thread Spike
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:

RE: [ cf-dev ] Regular Expression for Email and Domain checking - it works!

2003-01-28 Thread Paul Johnston
> 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

RE: [ cf-dev ] Regular Expression for Email and Domain checking - it works!

2003-01-28 Thread Robertson-Ravo, Neil (RX)
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

RE: [ cf-dev ] Regular Expression for Email and Domain checking - it works!

2003-01-28 Thread Paul Johnston
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

RE: [ cf-dev ] Regular Expression for Email and Domain checking - it works!

2003-01-28 Thread Spike
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

RE: [ cf-dev ] Regular Expression for Email and Domain checking - it works!

2003-01-28 Thread Paul Johnston
> > 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

RE: [ cf-dev ] Regular Expression for Email and Domain checking - it works!

2003-01-28 Thread Robertson-Ravo, Neil (RX)
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

RE: [ cf-dev ] Regular Expression for Email and Domain checking - it works!

2003-01-28 Thread Paul Johnston
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

RE: [ cf-dev ] Regular Expression for Email and Domain checking - it works!

2003-01-28 Thread Paul Johnston
> 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

RE: [ cf-dev ] Regular Expression for Email and Domain checking - it works!

2003-01-28 Thread Paul Johnston
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|.

RE: [ cf-dev ] Regular Expression for Email and Domain checking - it works!

2003-01-28 Thread Giles Roadnight
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

Re: [ cf-dev ] Regular Expression for Email and Domain checking - it works!

2003-01-28 Thread Damian Watson
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

Re: [ cf-dev ] Regular Expression for Email and Domain checking - it works!

2003-01-28 Thread Damian Watson
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

RE: [ cf-dev ] Regular Expression for Email and Domain checking - it works!

2003-01-28 Thread Robertson-Ravo, Neil (RX)
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

RE: [ cf-dev ] Regular Expression for Email and Domain checking - it works!

2003-01-28 Thread Paul Johnston
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

RE: [ cf-dev ] Regular Expression for Email and Domain checking - it works!

2003-01-28 Thread Paul Johnston
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

RE: [ cf-dev ] Regular Expression for Email and Domain checking - it works!

2003-01-28 Thread Robertson-Ravo, Neil (RX)
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!##\$%&''\*\+-/=\?\^_ `\{\|}~]+)

RE: [ cf-dev ] Regular Expression for Email and Domain checking - it works!

2003-01-28 Thread Giles Roadnight
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

RE: [ cf-dev ] Regular Expression for Email and Domain checking - it works!

2003-01-28 Thread Robertson-Ravo, Neil (RX)
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'

[ cf-dev ] Regular Expression for Email and Domain checking - it works!

2003-01-28 Thread Paul Johnston
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