Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^3: Please evaluate: RegEx for validating e-mail addresses

by jdalbec (Deacon)
on Sep 30, 2004 at 01:51 UTC ( [id://395213]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Please evaluate: RegEx for validating e-mail addresses
in thread Please evaluate: RegEx for validating e-mail addresses

merlyn says please stop encouraging DaWolf - he's heading down a dangerous path
It's true that you're heading down a dangerous path. Whatever regex you finally come up with, please don't use it in a production application. Use Email::Valid on the server and don't try to do complex processing in JavaScript.

What is the application you want to validate e-mail addresses for? Do you only care that they're syntactically valid or do you want to verify that there's a real person on the other end? In the second case you'll need to do more than just run the address through Email::Valid.

For educational purposes only, I'll point out that your regex rejects 'er_galvao_abbott@somedomain.com' and accepts 'er...galvao...abbott-_-_-_@somedomain.com'. Is that what you want?

  • Comment on Re^3: Please evaluate: RegEx for validating e-mail addresses

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2024-04-19 21:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found