项目

一般

简介

ExtractStringEx » 历史记录 » 版本 2

tejie, 2024-07-03 11:27

1 1 tejie
h4. _*{color:green}extractStringEx*_
2
3
按指定分割符拆分指定字符串
4
5
标签:命令定义|extractStringEx>extractStringEx
6
7
相关命令
8
[[pgExtractString]]
9
[[extractString]]
10 2 tejie
[[textSplit]]
11 1 tejie
12
*格式:*
13
|命令名|参数1|参数2|参数3|
14
|extractStringEx|分割符|待分割字符串|返回拆分结果变量|
15
16
*说明:*
17
|参数1|分割符|
18
|参数2|待分割字符串|
19
|^.参数3|返回拆分结果变量
20
为基础变量时,指定首位,分割时自动扩展。
21
为自定义变量时,指定变量前缀,分割时自动扩展。|
22
23
-
24
-
25
26
h4. *{color:deepskyblue}特戒引擎脚本示例:*
27
28
bq. [@示例]
29
#if
30
#act
31
%{color:lightGrey};分隔字符串后,按顺序往S11及以后放%
32
*{color:green}extractStringEx* | aaa|bbb|ccc|ddd|000 S11
33
<notextile>[[print]] <$STR(S11)>,<$STR(S12)>,<$STR(S13)>,<$STR(S14)>,<$STR(S15)></notextile>
34
<notextile></notextile>
35
%{color:lightGrey};分隔字符串后,依次放自定义变量1,2,3,4及以后放%
36
*{color:green}extractStringEx* | aaa|bbb|ccc|ddd|000 S$拆分
37
<notextile>[[print]] <$STR(S$拆分1)>,<$STR(S$拆分2)>,<$STR(S$拆分3)>,<$STR(S$拆分4)>,<$STR(S$拆分5)></notextile>