Using a regular expression just to see if a single character is a digit is a really inefficient idea.