diff --git a/routing/slash_in_parameter.rst b/routing/slash_in_parameter.rst index 4970cef2fa4..f3571cf01f1 100644 --- a/routing/slash_in_parameter.rst +++ b/routing/slash_in_parameter.rst @@ -85,7 +85,7 @@ That's it! Now, the ``{token}`` parameter can contain the ``/`` character. use the ``.+`` requirement for the parameters that allow slashes. For example, if the pattern is ``/share/{token}.{_format}`` and ``{token}`` allows any character, the ``/share/foo/bar.json`` URL will consider ``foo/bar.json`` - as the token and the format will be empty. This can be solved replacing the + as the token and the format will be empty. This can be solved by replacing the ``.+`` requirement by ``[^.]+`` to allow any character except dots. .. note::