The DataAnnotations validator not working in asp.net mvc 4 razor view, when using the special characters in the regular expression.
Model:
Try using the ASCII code for those values:
^([a-zA-Z0-9 .\x26\x27-]+)$
\x26
&
\x27
'
The format is \xnn where nn is the two-digit hexadecimal character code. You could also use \unnnn to specify a four-digit hex character code for the Unicode character.
\xnn
\unnnn