Use preg_replace_callback instead the deprecated /e switch with preg_replace