PDA

View Full Version : regex for limit new lines in textarea



mysticav
27 Apr 2009, 11:31 PM
I t would be nice to have a "maxLines" config option. Anyway, Can somebody help me with a regular expressions so I can:

count the new lines that the text has ? I guess is just a matter of counting the \n characters.

I need to validate the text area allowing only 4 lines.

Adding the regular expression to regex config option will solve my problem.

vinaykuma201
29 Sep 2009, 9:52 PM
Hi

i found ur thread in forum.did u got answer for limit new line in text area.Please let me know wht the solution for this.
please help me.