two kinds of digit by tails

G
:
s/.\w*/&0&1&2&3&4&5&6&7&8&9/g
/0000/!b
s/0*\(.\)\1*.\|0*\(\(\w\)\3*\(\w\)\3*\4*\3*.\)\|\w*./\2/g
s/$/10000/

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

download

return to the top page