Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: catching newlines from textarea input

by maksl (Pilgrim)
on Feb 28, 2003 at 12:49 UTC ( [id://239421]=note: print w/replies, xml ) Need Help??


in reply to catching newlines from textarea input

as always looking to the same lines of code i didn't catch my own fault ..
pff just changed the </p><p> in the second line in wanted <br>:
$txt =~ s{(?<=[\w&;\\\-:\/])$nl\s*$nl(?=\s*[\w&;\\\-:\/])}{</p><p>}g if ( defined $nl ); $txt =~ s{(?<=[\w&;\\\-:\/])$nl(?=\s*[\w&;\\\-:\/])}{</p><p>}g if ( defined $nl );
cms does now linebreaks as assumed and wanted :))
"grand merci" to everybody for their interesting input maksl

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://239421]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (8)
As of 2024-04-23 09:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found