标签:split [1] oca ras 特定 match lua mat local
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
【lua】lua string.match 和 string.split 从字符串中寻找特定字符串并保存
标签:split [1] oca ras 特定 match lua mat local
原文地址:http://www.cnblogs.com/Faiz-room/p/6924548.html