split()
函数说明:将字符串按分割符分割成多个子串
语法:split(srcExp,sepExp{,boolExp})
参数说明:srcExp待分割的字符串表达式sepExp分隔符表达式boolExpbool型,是否解析引号、括号里的分隔符,为true时解析,为false时不解析,省为false
返回值:分割后的字符串列表
示例:
例1:=split("ab;cd;ef;tg;tt",";")返回数组:["ab","cd","ef","tg","tt"]
例2:=split("ab;c'd;e'f;tg;tt",";",false)返回数组:["ab","c'd;e'f","tg","tt"] 不解析引号里的分隔符
例3:=split("ab;c[d;e]f;tg;tt",";",false)返回数组:["ab","c[d;e]f","tg","tt"] 不解析括号里的分隔符
例4:=split("ab;c'd;e'f;tg;tt",";",true)返回数组:["ab","c'd","e'f","tg","tt"] 解析引号里的分隔符
例5:=split("ab;c[d;e]f;tg;tt",";",true)返回数组:["ab","c[d","e]f","tg","tt"] 解析括号里的分隔符