fix deprecated preg_replace_callback with \e