Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Yet Another Email Validation question

by Abigail-II (Bishop)
on Apr 06, 2004 at 19:34 UTC ( [id://343092]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Yet Another Email Validation question
in thread Yet Another Email Validation question

The company has to review any newly installed module? Sensible. But what about your code, doesn't that have to be reviewed? What if you just make Email::Valid part of your application? Or just copy and paste the relevant code? How long did your company take to review perl itself?

Anyway, your regex is just too trivial to take serious. It would fail on every email address I create for registrating at a website. Rejecting email addresses that don't start with a \w character is as useful as rejecting street names that don't start with a vowel. You're rejecting perfectly valid email addresses, and on the other hand, you are accepting anything that starts with a \w character, and contains a @ and a dot. Which would mean you'd accept the text of this posting as a valid address, yet reject "this is valid"@example.com.

Abigail

  • Comment on Re: Yet Another Email Validation question

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://343092]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2024-04-25 05:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found