['\w-] will match any alphanumeric character, digit or underscore
(that's the \w) or a hyphen (that's the -)

----- Original Message -----
From: Ewok <[EMAIL PROTECTED]>
Date: Wed, 29 Sep 2004 17:21:09 -0400
Subject: RE: Verify an email address from a query
To: CF-Talk <[EMAIL PROTECTED]>

Just curious� what is ['\w-] ?


    _____  

From: Scott Stroz [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 29, 2004 10:52 AM
To: CF-Talk
Subject: Re: Verify an email address from a query

This is what I use.  It will verify valid IP addresses as the domain.

^['\w-]+(\.['\w-]+)*@([\w-]+(\.[\w-]+)*\.(([a-zA-Z]{2,3})|(aero|coop|info|mu
seum|name))|(((\d{1,2})|(1\d{2})|(2[0-4]\d)|(25[0-5]))\.){3}((\d{1,2})|(1\d{
2})|(2[0-4]\d)|(25[0-5])))$

----- Original Message -----
From: Paul Vernon <[EMAIL PROTECTED]>
Date: Wed, 29 Sep 2004 14:28:34 +0100
Subject: RE: Verify an email address from a query
To: CF-Talk <[EMAIL PROTECTED]>

Don't forget about internationalised and localised things like �,�,�,� and �
etc :) They are all valid characters.....

I think these days, its getting easier to say what is not valid rather than
what is valid...

Paul________________________________


    _____  

[HYPERLINK "http://www.houseoffusion.com/lists.cfm/link=t:4"Todays Threads]
[HYPERLINK "http://www.houseoffusion.com/lists.cfm/link=i:4:180051"This
Message] [HYPERLINK
"http://www.houseoffusion.com/lists.cfm/link=s:4"Subscription] [HYPERLINK
"http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=678.598.4"Fast
Unsubscribe] [HYPERLINK "http://www.houseoffusion.com/signin/"User Settings]
[HYPERLINK
"https://www.paypal.com/cgi-bin/webscr?amount=&item_name=House+of+Fusion&bus
iness=donations%40houseoffusion.com&undefined_quantity=&cmd=_xclick"Donation
s and Support]


    _____  

HYPERLINK "http://www.houseoffusion.com/banners/view.cfm?bannerid=37" \n

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.767 / Virus Database: 514 - Release Date: 9/21/2004

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.767 / Virus Database: 514 - Release Date:
9/21/2004________________________________
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to