Deprecated preg_replace fixed