Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Space between digits

by bart (Canon)
on Nov 23, 2012 at 12:29 UTC ( #1005261=note: print w/ replies, xml ) Need Help??


in reply to Space between digits

This might help:

s/(?<=\d) (?=\d)/ /
It replaces a single space with 3 provided there's a digit (at least one) in front of it, and one (at least one) behind it.


Comment on Re: Space between digits
Download Code
Re^2: Space between digits
by Anonymous Monk on Nov 23, 2012 at 16:04 UTC
    Yes yes that was good one Bart. I tried that and it worked...thank you very much.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1005261]
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: (6)
As of 2015-07-03 18:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (55 votes), past polls