Regex validator question

S

Stephan Bour

I¹m trying to validate a field that can have up to 150 word characters but
any number of white space, carriage returns or tabs.
This doesn¹t work properly:
ValidationExpression="^[\w]{1,150}[\n\s]{0,}"

I get a validation error if any non-word character is added, regardless of
the total length of the string.
Thanks for your help,
Stephan.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top