Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: trim leading & trailing whitespace

by graff (Chancellor)
on Mar 30, 2005 at 07:56 UTC ( #443364=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    s/^\s+//;
    s/\s+$//;
    
  2. or download this
    s/\s*\n\s*/\n/g;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://443364]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (11)
As of 2017-06-25 19:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (569 votes). Check out past polls.