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})$" 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. Link to comment https://forums.phpfreaks.com/topic/130294-problems-with-email-validation/#findComment-675814 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.