easy regexp by tails

s/\[.*]/(&)/
y/|#+-/0123/
:
s/\[\(\w\)/\10[/
s/0\[]//
s/(\(\w*\))?\|\(\w\)?/(0\1\2)/
t
s/^\(\w*\)\((\w*\)0\(\w*\).\(.*\)/\1\2)\4\n\1\3\4/m
t
s/(//
s/)//
t
y/123/#+-/

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

download

return to the top page