Swap The Characters by twobit

while""do
f=io.read():gfind"((%S)(.)%S*)"s=f()for _,a,b in f do
s=s:gsub(".",{[a]=b,[b]=a})end
print(s)end

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

download

return to the top page