Thread Tausendertrennzeichen (3 answers)
Opened by linuxCowboy at 2014-08-29 18:42

linuxCowboy
 2014-08-30 16:10
#177054 #177054
User since
2014-01-29
30 Artikel
BenutzerIn
[default_avatar]
...Jahreszahlen!

Code (sh): (dl )
1
2
3
echo 1970 2014 3000 20000 | perl -ne 'while(/\d{5,}|[3-9]\d{3}/) {$b=$`; $m=$&; $a=$'\''; $m=~s/(?<=\d)(?=(\d\d\d)+\b)/./; $_="$b$m$a"}; print'

1970 2014 3.000 20.000

View full thread Tausendertrennzeichen