fix preg_replace

if the e-flag is not use, this should fix Issue #454