Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: catching newlines from textarea input

by maksl (Pilgrim)
on Feb 28, 2003 at 12:49 UTC ( #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? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2022-11-30 14:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?