http://www.perlmonks.org?node_id=1005261


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.

Replies are listed 'Best First'.
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.