Hi I am using a validation like below to ensure I am just working on a csv file.
[RegularExpression(@"(csv)|(CSV)")]
public string AttachmentFileName { get; set; }
After form submit model returns a value
AttachmentFileName = "UserMapping.csv"
However I am still getting validation error as:
The field AttachmentFileName must match the regular expression '(csv)|(CSV)'.
Where I am doing error? I tested my expression on website, there it seems to work alright.