J
jeffery.kabir
I'm trying to get a regular expression that matches only 4 digits, i'm
using
Regex.IsMatch(userID, "^\d{4}")
If the user types in more than 4 digits it still is being returned as a
match. Should I be using IsMatch, or is my regular expression wrong?
Thanks.
using
Regex.IsMatch(userID, "^\d{4}")
If the user types in more than 4 digits it still is being returned as a
match. Should I be using IsMatch, or is my regular expression wrong?
Thanks.