It is not clear from your question where you exactly got the error, but one thing is sure - your regex not good...
[0-9]
is good only for a single digit. If you want more than that user
[0-9]+
or
\d+
(
d
is for digit), and forgot the
^
(or
$
) signs - your input is single line so there is not much meaning for start/end-of-line here...
http://www.regexper.com/#%5B0-9%5D%2B[
^]
About your RangeValidator...You have no range! Also there is a problem with that Type attribute - it will force the validator to convert the textbox value to integer before comparsion...
It is unsure what will be the order of the validations in case of multiple validators...So the range validation may run before the regex and in case you have something that can not be converted to int you will get the error above...
In your case only CustomValidator can help...