damn newbie fingers.  That's why I write all my code with my toes.

~Simon

Simon Horwith
CTO, Etrilogy Ltd. 
Member of Team Macromedia
Macromedia Certified Instructor 
Certified Advanced ColdFusion MX Developer
Certified Flash MX Developer
CFDJList - List Administrator
http://www.how2cf.com/


-----Original Message-----
From: Duncan Fenton [mailto:[EMAIL PROTECTED]
Sent: 18 August 2003 18:23
To: [EMAIL PROTECTED]
Subject: RE: [ cf-dev ] mail regex quirks #2


Newbie finger trouble.  I'd copied the <cfsavecontent....> string
from Rich's original post but I had then indented it 'nicely' so
the leading blanks on each line were throwing the regex.  Of course
the >first< address (and his only valid example) was OK because it 
immediately followed the <cfsavecontent....> tag and was not 
preceded by any extraneous blanks.  When I copied the only good 
address to the end and it stopped working....
Oy veh!
Thanks, guys, I'll keep on learning.
Duncan.

-----Original Message-----
From: Rich Wild [mailto:[EMAIL PROTECTED]
Sent: 18 August 2003 17:43
To: '[EMAIL PROTECTED]'
Subject: RE: [ cf-dev ] mail regex quirks #2


I just tested that e-mail address and it validates fine!

Here's the regex I used:

regex = "^[a-z0-9][-\._a-z0-9]*@([a-z0-9][-a-z0-9]*\.)+[a-z]{2,6}$";

from Tim's post.





> -----Original Message-----
> From: Tim Blair [mailto:[EMAIL PROTECTED]
> Sent: 18 August 2003 17:42
> To: [EMAIL PROTECTED]
> Subject: RE: [ cf-dev ] mail regex quirks #2
> 
> 
> 
> > Your regex solution says my email 
> > [EMAIL PROTECTED]
> > is invalid which is not really so.
> 
> I wouldn't say it was "my" regex: I only took what Rich 
> posted and made
> it work...  ;)
> 
> Here's the regex I use when I'm checking email address.  I'm not sure
> where it came from but I've seen it floating around in other people's
> code too...
> 
> ^['_a-z0-9-]+(\.['_a-z0-9-]+)[EMAIL PROTECTED](\.[a-z0-9-]+)*\.(([a
> -z]{2,3})|
> (aero|coop|info|museum|name))$
> 
> [watch the wrap, it should be all one line and nospaces]
> 
> Tim.
> 
> 
> -------------------------------------------------------
> RAWNET LTD - Internet, New Media and ebusiness Gurus.
> Visit our new website at http://www.rawnet.com for
> more information about our company, or call us free
> anytime on 0800 294 24 24.
> -------------------------------------------------------
> Tim Blair
> Web Application Engineer, Rawnet Limited
> Direct Phone : +44 (0) 1344 393 441
> Switchboard : +44 (0) 1344 393 040
> -------------------------------------------------------
> This message may contain information which is legally
> privileged and/or confidential.  If you are not the
> intended recipient, you are hereby notified that any
> unauthorised disclosure, copying, distribution or use
> of this information is strictly prohibited. Such
> notification notwithstanding, any comments, opinions,
> information or conclusions expressed in this message
> are those of the originator, not of rawnet limited,
> unless otherwise explicitly and independently indicated
> by an authorised representative of rawnet limited.

> -------------------------------------------------------
> 
> 
> 
> -- 
> ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
> 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> For human help, e-mail: [EMAIL PROTECTED]
> 


-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]



-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]






-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

Reply via email to