Find substring between specific characters
问题 I am unfamiliar with Lua language and a I would like your help. I am trying to receive some values through POST and the values is something like that: pwd = password ssid = ssid_name swstat={string.find(payload,"pwd=")} swstat1={string.find(payload,"ssid=")} if swstat[2]~=nil then pass=string.sub(payload,swstat[2]+1,#payload) ssid=string.sub(payload,swstat1[2]+1,#payload) print("Password: "..pass) print("SSID: "..ssid) end The actual result of the above code is ( am sending through a web