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. Link to comment https://forums.phpfreaks.com/topic/223776-convert-ereg-to-preg_match/ 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]) Link to comment https://forums.phpfreaks.com/topic/223776-convert-ereg-to-preg_match/#findComment-1158671 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.