zontrakulla Posted November 20, 2010 Share Posted November 20, 2010 Hello, I need this php code changed to preg_match please if(eregi("someurl",$data)) Thank you Quote Link to comment https://forums.phpfreaks.com/topic/219301-eregi-preg_match-convert/ Share on other sites More sharing options...
salathe Posted November 20, 2010 Share Posted November 20, 2010 Hi zontrakulla, please refer to the first two numbered points on the handy (3 point) list at http://php.net/reference.pcre.pattern.posix In short, read that page and use delimiters and the case-insensitivity pattern modifier. Quote Link to comment https://forums.phpfreaks.com/topic/219301-eregi-preg_match-convert/#findComment-1137186 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.