extend 70f84bf even more

to prevent empty regular expression errors in preg_replace()