It is not clear from your question where you exactly got the error, but one thing is sure - your regex not good...
is good only for a single digit. If you want more than that user
is for digit), and forgot the
) signs - your input is single line so there is not much meaning for start/end-of-line here...
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...