diff --git a/reference/constraints/Regex.rst b/reference/constraints/Regex.rst index 61285396682..ab6e98134d4 100644 --- a/reference/constraints/Regex.rst +++ b/reference/constraints/Regex.rst @@ -32,7 +32,7 @@ characters at the beginning of your string: Acme\BlogBundle\Entity\Author: properties: description: - - Regex: "/^\w+/" + - Regex: '/^\w+/' .. code-block:: php-annotations @@ -98,7 +98,7 @@ message: properties: firstName: - Regex: - pattern: "/\d/" + pattern: '/\d/' match: false message: Your name cannot contain a number