T
tshad
Why does this work?
if (Regex.IsMatch("A234456", @"[ABCEGHJKLMNPRSTVXY]\d{1}"))
temp = temp;
else
temp = temp;
Doesn't the {1} say only one digit?
If I said:
@"[0-9]{1}
This would say only 1 digit (where the {1} is not necessary as that is the
default)
But
@"[ABCEGHJKLMNPRSTVXY]{2}
Says 2 digits
Doesn't the {} say how many of the previous set?
Thanks,
Tom
if (Regex.IsMatch("A234456", @"[ABCEGHJKLMNPRSTVXY]\d{1}"))
temp = temp;
else
temp = temp;
Doesn't the {1} say only one digit?
If I said:
@"[0-9]{1}
This would say only 1 digit (where the {1} is not necessary as that is the
default)
But
@"[ABCEGHJKLMNPRSTVXY]{2}
Says 2 digits
Doesn't the {} say how many of the previous set?
Thanks,
Tom