get_lrstr(string, spstr, type)

参数:

string, 被搜索的字符串

spstr, 作为分割符的字符

type, 截取的类型

作用:

获取按条件左右截取的字符串。

示例:

{$=get_lrstr("1,2,3,4,5", ",", "left")}
返回值:1

{$=get_lrstr("1,2,3,4,5", ",", "leftr")}
返回值:1,2,3,4

{$=get_lrstr("1,2,3,4,5", ",", "right")}
返回值:5

{$=get_lrstr("1,2,3,4,5", ",", "rightr")}
返回值:2,3,4,5