I have written the regex below for a really simple email validation. I plan to send a confirmation link.
/.*@[a-z0-9.-]*/i
I would, however, like to enhance it from the current state because a string like this does not yield the desired result:
test ,[email protected], test
The "test ," portion is undesirably included in the match. I experimented with word boundaries unsuccessfully.
THANKS!
It's a lot more complicated !!! See Mail::RFC822::Address and be scared...very scared.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With