getLRStr(string argString, string argSpstr, string argType)

参数:

argString, 字符串

argSpstr, 分割字符串

argType, 类型字符串(left,leftr,right,rightr)

作用:

将字符串按照分割字符取左或者右边的字符串。

示例:

{$=getLRStr("1,2,3,4,5", ",", "left")} = 1

{$=getLRStr("1,2,3,4,5", ",", "leftr")} = 1,2,3,4

{$=getLRStr("1,2,3,4,5", ",", "right")} = 5

{$=getLRStr("1,2,3,4,5", ",", "rightr")} = 2,3,4,5