in reply to match digit, followed by hyphen, followed again by digit - then add whitespaces and replace in file
while (<>) { s/(\d)-/$1 -/g; print; }
Are you sure the output isn't in a fixed-width format?
($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: match digit, followed by hyphen, followed again by digit - then add whitespaces and replace in file
by fasoli (Beadle) on Aug 17, 2017 at 13:15 UTC | |
by choroba (Cardinal) on Aug 17, 2017 at 13:21 UTC |