ValidationExpression="[\S\s]{10,50}"
Can also be
ValidationExpression="[\w\s]{10,50}" - word or whitespace
The second is actually better, as it gets rid of garbage. Unlikely someone
can type the garbage in, however, so the risk is not high either way.
--
Gregory A. Beamer
*************************************************
Think Outside the Box!
*************************************************
"darrel" <no*****@nowhere.com> wrote in message
news:ea****************@TK2MSFTNGP02.phx.gbl...
I'm trying to validate the length of characters in a text box. Google
seems to turn up a few examples of using the regex validator with this
expression:
^[\S\s]{1, 50}$
(one being minimum length, 50 being maximum).
However, on my page, no matter the length, this validator is always coming
up as invalid. Is the expression incorrect?
-Darrel