Fixed #939: Pattern delimiter is not passed to several preg_quote calls
ported fefdfb9089368014db8e9df1e6d1c2982e512ba6...1643bc508ab7d20fb31634bb50ef282c48a3c491 (from 0.11)