Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Answer: How do you limit textarea of a form

( #14689=categorized answer: print w/ replies, xml ) Need Help??

Q&A > input and output > How do you limit textarea of a form contributed by ZZamboni

Or if you want to remove blank lines:
If you want to clump everything into a single line (maybe for reformatting it yourself, see Text::Wrap or my Nicely format a list or a string snippet):
s/\s+/ /g;
If you want to cut it to the first 5 non-empty lines:
I don't think there is an HTML attribute to restrict the number of lines in a TEXTAREA.


Comment on Answer: How do you limit textarea of a form
Select or Download Code
Log In?

What's my password?
Create A New User
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (10)
As of 2015-11-25 13:49 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (676 votes), past polls