[Required(ErrorMessage = "Please Enter AccountZip Code!")]
[RegularExpression(@"/(^\d{5}(-\d{4})?$/", ErrorMessage = " Zip code must be 5 characters length")]
public string AccountZip { get; set; }
I did regularexpression for Zip code validation I am getting this Error Message
parsing "/(^\d{5}(-\d{4})?$/" - Not enough )'s.
Can any body help me out?
Thanks