how can i create a regular expression for abcABC123/abcABC123 in dataannotion
2 Answers
I'd recommend you have a look at this article on .NET 3.5 DataAnnotations. It has a single example of usage of regular expression for validation. Your's string can be matched by [a-z]{3}[A-Z]{3}[0-9]{3}/[a-z]{3}[A-Z]{3}[0-9]{3} or something more general, like the one posted by Darin.