I am following Entity framework code first approach. I have following property in one of my models. I want to validate comma separated emails by this regular expression. But it is not working fine. Ex:
As you can see it is validating here correctly.
[RegularExpression(@"^(\s?[^\s,]+@[^\s,]+\.[^\s,]+\s?,)*(\s?[^\s,]+@[^\s,]+\.[^\s,]+)$",ErrorMessage = "Invalid Email")]
[DisplayName("Participant List")]
public string ParticipantList { get; set; }
Anyone know any regular expression that works properly, i would like to know. I am highly appreciate it.
Thank you.
