Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Regex to add space after punctuation sign

by Hena (Friar)
on Jan 08, 2004 at 09:53 UTC ( #319768=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    s/(?<=\D)([,.]) *(?=\D)/$1 /g;
    
  2. or download this
    perl -e '$a="1,23, 23, df,sd.asf,\"\"";$a=~s/(?<=\D)([,.]) *(?=\D)/$1 
    +/g;print "$a\n";'
    1,23, 23, df, sd. asf, ""
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://319768]
help
Chatterbox?
[roboticus]: Maybe use a squarified tree map tool (first google hit I got: https://windirstat .net/)
[Discipulus]: LanX TreeSize used to be useful.. but if is 9mb..;=)
[pryrt]: LanX, I like NirSoft SearchMyFiles for finding large / duplicate files...
[SuicideJunkie]: Windirstat is what we use here for nagging people who use up the transfer share.

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (10)
As of 2017-09-20 16:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (237 votes). Check out past polls.

    Notices?