[Documentation] Add note about simple string matching

Mention the use of ``in`` operator when looking for a simple string instead of ``matches``. #Symfony_Live
This commit is contained in:
Axel Venet
2022-04-07 15:41:53 +02:00
parent f6bd36a694
commit 5e26ce7320
+2
View File
@@ -664,6 +664,8 @@ string:
{% if phone matches '/^[\\d\\.]+$/' %}
{% endif %}
For simple string comparisons, the containment operator can be used.
Containment Operator
~~~~~~~~~~~~~~~~~~~~