[thelist] testing for email address in perl

Kristy Frey kristenannfrey at yahoo.com
Sun Jan 13 17:47:49 CST 2002


> The key line is: m/(\w[-.\w]+\@[-.\w]+\.\w{2,3})\W/

I just had it pointed out to me in another thread that foo at foo.info is a valid email address
format

So perhaps, with .xxxx addresses, we need to change it to:

m/(\w[-.\w]+\@[-.\w]+\.\w{2,4})\W/


__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/




More information about the thelist mailing list