【lua】lua string.match 和 string.split 从字符串中寻找特定字符串并保存
local string = "{1,2,3,4}"
local traString=string.match(string , "%d+,%d+,%d+,%d+")
--此时tranString = "1,2,3,4",去掉"{","}"
string = string.split(tranString , ",")
string = {1,2,3,4}
string[1]=1
string[2]=2
string[3]=3
string[4]=4