ballhogjoni Posted January 6, 2009 Share Posted January 6, 2009 I am trying to validate emails and I have a problem with this regexp: eregi([a-zA-Z0-9_.-]+@[a-zA-Z0-9-]+\.[a-zA-Z.-]) if I try the email test.test.test@xxxxxxxxxxxx.com it returns false and if I do test@xxxxxxxxxx.com it returns true. What is wrong with the regexp? Quote Link to comment Share on other sites More sharing options...
DarkWater Posted January 6, 2009 Share Posted January 6, 2009 Don't use ereg() or anything in the ereg() family. It's being removed from PHP6 and will only be available as a PECL extension, so it's not very forward compatible. Quote Link to comment Share on other sites More sharing options...
ballhogjoni Posted January 6, 2009 Author Share Posted January 6, 2009 thx for the update... Quote Link to comment 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.