Made a mistake when replacing ereg_replace in previous commit.