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 [email protected] it returns false and if I do [email protected] it returns true. What is wrong with the regexp? Link to comment https://forums.phpfreaks.com/topic/139762-eregi-issue/ 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. Link to comment https://forums.phpfreaks.com/topic/139762-eregi-issue/#findComment-731205 Share on other sites More sharing options...
ballhogjoni Posted January 6, 2009 Author Share Posted January 6, 2009 thx for the update... Link to comment https://forums.phpfreaks.com/topic/139762-eregi-issue/#findComment-731207 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.