--for https://www.lua.org/cgi-bin/demo h="0123456789abcdef" p="/Q/6553565536" io.write(p:sub(0,3)..'\n') if p:sub(0,3)=="/Q/" then q=p:sub(4) x=0 for i=1,math.min(12,q:len()) do x=q:byte(i)-48+x*10 end io.write(x..'\n') s='' repeat y=(x&15)+1 s=h:sub(y,y)..s x=x>>4 until x==0 io.write('/qx/'..s) end