[thelist] Regular expression

Anthony Baratta anthony at baratta.com
Wed Jan 28 17:27:43 CST 2004


At 03:03 PM 1/28/2004, Mark Joslyn wrote:
>I need an ASP regular expression that takes the following:

I use this in Perl to grab email addresses:

         (\w[-.\w]+\@[-.\w]+\.\w{2,3})\W

You could probably truncated it for just the domain name:

         (\@[-.\w]+\.\w{2,3})\W

My first question is are you sure you want what's between the @ and the 
first "."?? There are sub domains and county codes that don't fit the 
@name.ext format.

---
Anthony Baratta
President
Keyboard Jockeys

"Conformity is the refuge of the unimaginative."



More information about the thelist mailing list