Uusing preg_replace_callback because deprecated /e