I need to validate an account number. It is supposed to have only digits and have 9 or 10 characters. I tried this:
return Regex.IsMatch(id, "[0-9]{9,10}");
But this is not working correctly, as it returns true in case the number is "1234567890blah". Could you please help, as I am not that good with regex?
Thanks.