removed PHP 5.5 deprecated regex eval call