8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 881477c commit 1cc5925Copy full SHA for 1cc5925
components/expression_language/syntax.rst
@@ -176,7 +176,10 @@ Comparison Operators
176
To test if a string does *not* match a regex, use the logical ``not``
177
operator in combination with the ``matches`` operator::
178
179
- $language->evaluate('not "foo" matches "/bar/"'); // returns true
+ $language->evaluate('not ("foo" matches "/bar/")'); // returns true
180
+
181
+ You must use parenthesis because the unary operator ``not`` has precedence
182
+ over the binary operator ``matches``.
183
184
Examples::
185
0 commit comments