obi Posted January 8, 2011 Share Posted January 8, 2011 pls help me convert this expr: !ereg('(([0-9]{1,3}\.){3}[0-9]{1,3})\[0-9]{1,5})', $sData, $aRegs) || !ip2long($aRegs[1]) from erego to preg_match adequate expr. Quote Link to comment Share on other sites More sharing options...
thcx Posted January 13, 2011 Share Posted January 13, 2011 !preg_match('%(([0-9]{1,3}\.){3}[0-9]{1,3})\[0-9]{1,5})%', $sData, $aRegs) || !ip2long($aRegs[1]) 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.