Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Replacing whitespaces with a regex

by tmharish (Friar)
on Mar 04, 2013 at 14:25 UTC ( #1021654=note: print w/replies, xml ) Need Help??


in reply to Replacing whitespaces with a regex

The essence is that you are using regex to match - but what you want to do is use s/regex/replace/ to replace. Details on how to do it in your case has been covered extensively above.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1021654]
help
Chatterbox?
[stevieb]: for the first time ever, I will have 100% of the documentation and unit tests written for a new distribution before writing even a single character of the C or Perl code required :)

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (17)
As of 2017-01-20 16:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (176 votes). Check out past polls.