Replaced /e in regex with preg_replace_callback()