Validation Error Message for regular expression

Validation Error Message for regular expression

I have specified an error message for an attribute having a regular expression. This error message is not displayed.


How does this work to display the validation error message?