PHP 5.4 compatibility

PHP 5.4 compatibility: e-modifier on preg_replace is deprecated