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

Re: removing returns from a submited text box

by CharlesClarkson (Curate)
on Nov 23, 2001 at 18:40 UTC ( #127115=note: print w/ replies, xml ) Need Help??


in reply to removing returns from a submited text box

s|\n||gm; will rid you of all newlines (\n) by treating the string as multiple lines. It will also eliminate white space between words. s|\n| |gm; will replace newlines with a space. </CODE>


Comment on Re: removing returns from a submited text box
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (15)
As of 2014-07-22 15:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (117 votes), past polls