Hello. How do I migrate this line in PHP so it does the same results, but is suitable for the latest version of PHP: $vbox7s = eregi('<div id="mainContainer" >(.*)</div>', $vbox7, $vbox7r); PHP: I consider myself pretty good with PHP, but I just suck at regular expression stuff. Currently, the above line issues a notice at the top of the page that the function is deprecated. Regards!
Replace eregi with preg_match and add delimiters. $vbox7s = preg_match('~<div id="mainContainer" >(.*)</div>~', $vbox7, $vbox7r); PHP: