I have a problem displaying a custom message with Regex assert. It worked good for any other assert but not Regex.
Here is my assert :
@Assert\Regex(
* pattern = "/^[0-9]{1,6}(\.[0-9]{1,2})?$/"),
* message = "I want to display Bad value"
* )
The validation works but the message is a symfony default one. Why is that ? What do I miss ?
Thank you