Belgian Numbers by tails

s/^/000/
h
:1
g
s/0*/0/
s/0/ 0123456789/g
s/ \S*\(\S\)\S\{9\}/\1/gp
/493/d
:2
g
s/$/-/
:3
s/0-\{10\}/-0/
t3
h
y/0/A/
G
:
s/\(-*\)\n0\1\(0.*\)/\n\20\1/
t
s/-A/A----------/
t
/A\n/b1
b2

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page