Pandolfo Posted October 27, 2008 Share Posted October 27, 2008 Hey everyone, I'm having some issues with a regular expression designed to validate email addresses. Most of the time it validates the address just fine. However, whenever someone enters an address where anything before the @ sign is separated with a period (something like [email protected]) the string is rejected. I've posted the expression below. Maybe i've been looking at it too long. Any help would be great. Thanks! "^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$" Quote Link to comment https://forums.phpfreaks.com/topic/130294-problems-with-email-validation/ Share on other sites More sharing options...
nrg_alpha Posted October 27, 2008 Share Posted October 27, 2008 Have you considered doing a forum search? Type 'email validation' and see what comes up. EDIT - Don't do that from within this page.. go to the PHP Regex forum root and do this. Quote Link to comment https://forums.phpfreaks.com/topic/130294-problems-with-email-validation/#findComment-675814 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.