character subsets by emoken

s/$/%\n/
:1
/\(.\)%.*\1/b3
s/%.*/&&/
:
s/\(\(.\)%.*\)%\n\(\w*\)/\1\n\2\3%/
t
s/%$//
:3
s/.%/%/
/^%./!b1
s///

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

download

return to the top page