>>>>> "Shane" == Shane McElwee <[EMAIL PROTECTED]> writes:
Shane> Below I've a regular expression that checks the syntax of an email address. Shane> The problem I'm having is with the underscore "_" . I've tried some Shane> different forms of syntax but I know its something simple I'm missing. I Shane> think I've been looking at it too long. The validator should allow usernames Shane> with periods and underscores. Any ideas? Shane> next if (!/^[\w][\w\._-]*@[\w\.-]+$/) It's wrong. Don't use it. It breaks <*@qz.to> and <fred&[EMAIL PROTECTED]>, both legitmate addresses in use. See Email::Valid, or the FAQ. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/> Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training! -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]