Taylor_Idaho
New Member
I'm developing an MVC 4 ASP.NET application with Razor view engine. I have a property in view called 'Title' and has set its metadata like this:\[code\][RegularExpression(@"^[\p{L}\p{N}\s\,\?\-\(\)\u200C]*$", ErrorMessage = "Some error message")]public string Title { get; set; }\[/code\]In view, as soon as I start typing any character in corresponding textbox, it shows the validation message. This is the razor view:\[code\]@Html.LabelFor(model => model.Title)@Html.EditorFor(model => model.Title)@Html.ValidationMessageFor(model => model.Title)\[/code\]Am I missing something?