I want to use this for form validation when they enter the email in the first place.
>>> Michael Dinowitz <[EMAIL PROTECTED]> 07/09/02 03:57PM >>>
The true answer is no. The reason is that different people write their valuators based
on different criteria. For example:
\.[a-z]{2,4}$ - means that the string has to end with a period followed by a
combination of characters that must have a length of 2-4. This gets .uk and .info with
no problem as they're official domains. On the other hand, someone said that .museum
is now a legal domain and that means that the code has to be {2,6} now.
I'd say take a few of the best ones, look at them to decide why they were done
differently and then roll your own.
Oh, a side question. Do you want to do pre-sending validation or post?
> There are a lot of different examples of regular expressions that validate an e-mail
>address. Does anyone have a true e-mail validation regex, meaning that it really
>parallels the criteria of a valid e-mail?
>
> TIA
>
> ---------------------------------------
>
> Ben Morris
>
> Web Site Developer
> American Federation of Government Employees, AFL-CIO
> (202) 639-6448
> www.afge.org
>
>
>
______________________________________________________________________
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists