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

No members online now.

Forum statistics

Threads
474,264
Messages
2,571,065
Members
48,770
Latest member
ElysaD

Latest Threads

Top