I have two regular expressions that validate the values entered.
One that allows any length of Alpha-Numeric value:
@\"^\\s*(?[A-Z0-9]+)
Do you mean you want to match up to 10 digits? Try this:
@"^\s*[0-9]{1,10}\s*$"