Since you have defined the allowed input range as a regexp (this is great!), why not add it as a constraint? You can use the ```<REGEX error="errorMsg">regex</REGEX>``` tag under a ```<CONSTRAINT>``` tag to do this, see http://www.rudder-project.org/foswiki/Development/TechniqueXML.