Author: faizalaa1234 | Posted on: 7/5/2008 6:29:30 AM | Views : 328

 


Hi...


I ve used Regular Expression to Restrict Length of Each words in a TextArea.. with the following Expression..
  (?!.*?\b\w{20,})*  
in RegularExpression1.ValidationExpression.
The Error Message is RegularExpression1.ErrorMessage="Lengthy Words are Not allowed".
Its working good, that it doesnt allow more than 20 Charctrs in every word of the TextArea. It displays Error as  "Lengthy Words are Not allowed" When the Charctrs goes more than 20 in each words.



But the problem is..
When i give new line character that is ENTER KEY in text box. Its causing with error message. It seems to be not accepting the newline Charctrs.

What is the prblm.
How can i make the validation that should validate the Length of each word and should allow the NewLine Character also.. Pls Help me... 
...

Go to the complete details ...