minor #1457 Fixed the `matches` operator code example (brandonkelly)
authorFabien Potencier <fabien.potencier@gmail.com>
Tue, 29 Jul 2014 11:54:16 +0000 (13:54 +0200)
committerFabien Potencier <fabien.potencier@gmail.com>
Tue, 29 Jul 2014 11:54:16 +0000 (13:54 +0200)
This PR was merged into the 1.16-dev branch.

Discussion
----------

Fixed the `matches` operator code example

A customer just pointed out that your `matches` operator code example wasn't working for them, and it ended up being because its backslashes themselves needed to be escaped by additional backslashes. (I've verified this.)

While I was editing it, I also switched to forwardslash delimiters on the regex, since those are much more commonly used than curly brackets. (I hadn't even been aware that curly brackets are allowed.) To back that assertion up, [PHP's official preg_quote() docs](http://php.net/manual/en/function.preg-quote.php) state:

> The `/` is the most commonly used delimiter.

Commits
-------

33dcbc8 Fixed the `matches` operator code example


Trivial merge