File tree 1 file changed +10
-0
lines changed 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -159,6 +159,14 @@ Path Parameters
159
159
``/es `` *won't match this route *
160
160
======= ========================
161
161
162
+ .. note ::
163
+
164
+ Since Symfony 3.2, requirements can be prefixed by the ``* `` character to
165
+ enable Unicode matching, thus making ``. `` match any UTF-8 character instead
166
+ of just a single byte. Unicode matching is also automatically enabled
167
+ whenever the route or a requirement contains a non-ASCII UTF-8 character or
168
+ a `PCRE Unicode property `_ (``\p{xx} ``, ``\P{xx} `` or ``\X ``).
169
+
162
170
.. tip ::
163
171
164
172
The route requirements can also include container parameters, as explained
@@ -287,3 +295,5 @@ Adding Dynamic Requirements with Expressions
287
295
288
296
For really complex requirements, you can use dynamic expressions to match *any *
289
297
information on the request. See :doc: `/routing/conditions `.
298
+
299
+ .. _`PCRE Unicode property` : http://php.net/manual/en/regexp.reference.unicode.php
You can’t perform that action at this time.
0 commit comments