Fixed #939: Pattern delimiter is not passed to several preg_quote calls