I have a property such as IdentityCode
string IdentityCode {get;set;}
my IdentityCode has three pattern
it has 6 digit
######---->332145
or can get 6 digit with a slash
######/#----->332145/1
######/##----->332145/15
How can I set a pattern for this
Here is one way:
The expression matches 6 digits with an optional slash + one or two digits at the end.