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