I need to check the account number. It should have only numbers and have 9 or 10 characters. I tried this:
return Regex.IsMatch(id, "[0-9]{9,10}");
But this does not work correctly, since it returns true if the number is "1234567890blah". Could you help because I am not so familiar with regex?
Thanks.
source share