I had to migrate from PHP 5.2 to 5.3, so thousands of DEPRECATED messages started coming in my PHP system, but some are too complicated, follow the code:
if (!preg_match($SUBMENU.':', $sm)) {
$sm = explode($SUBMENU.":\n", $sm);
$sm = trim(preg_replace('/[^(<ul>)]<\/ul>.*/s', "\1\t</ul>", $sm[1]));
$sm = str_replace(array('{URL_IMAGENS}', '{URL_SITE}'), array(URL_IMAGENS, URL_SITE), $sm);
$mainTpl->assign('SUBMENU', $sm, 'STATIC');
}
Then I get the error:
Warning: preg_match () [function.preg-match]: Delimiter must not be alphanumeric or backslash in /home/sisv2/public_html/adm/index.php on line 135