This is probably what you want.
/^([aA]\d{8})$/
A log symbol means that the regular expression should start the search at the beginning of the line, and a dollar symbol means that the regular expression should complete the search at the end of the line. When used together, this means that the string should be checked from start to finish.
Square brackets are used to indicate a specific character or range of valid characters. Slash and d mean search for any digit character. In brackets at the end is the static value that applies to the previous test definition. The range of values ββcan be used by specifying the minimum value, immediately followed by a comma, and then the maximum value.
austin cheney
source share