> ## Documentation Index
> Fetch the complete documentation index at: https://rpa.bazhuayu.com/helpcenter/llms.txt
> Use this file to discover all available pages before exploring further.

# 拆分文本

## 指令说明

**描述：** 自定义或选择指定的分隔符，将文本分割成一个列表

## 参数说明

<Tabs>
  <Tab title="常规">
    <img src="https://mintcdn.com/bazhuayu-rpa-docs/QLw4prvAN-mejJU5/helpcenter/commands/data-processing/images/splittextcommand-01.png?fit=max&auto=format&n=QLw4prvAN-mejJU5&q=85&s=c5f1b113e0a071bcbe90a4fd41a7d1c7" alt="拆分文本指令参数面板" width="645" height="466" data-path="helpcenter/commands/data-processing/images/splittextcommand-01.png" />

    | 参数         | 说明                                                |
    | ---------- | ------------------------------------------------- |
    | **要拆分的文本** | 输入待分割的文本内容或字符串变量                                  |
    | **分割符类型**  | 标准分隔符：空格符/换行符/制表符 、 自定义分隔符：使用自定义的符号作为分隔符，支持正则匹配分隔 |
    | **过滤空白项**  | 勾选则自动过滤空白变量                                       |
    | **保存结果至**  | 指定一个列表变量名称,将分割后的列表保存在该列表变量中                       |
  </Tab>

  <Tab title="高级">
    本指令暂无高级参数。
  </Tab>
</Tabs>

## 使用示例

<img src="https://mintcdn.com/bazhuayu-rpa-docs/QLw4prvAN-mejJU5/helpcenter/commands/data-processing/images/splittextcommand-03.png?fit=max&auto=format&n=QLw4prvAN-mejJU5&q=85&s=8a9ccfbb3adfffbd94833e58accdefdd" alt="拆分文本使用示例" width="648" height="577" data-path="helpcenter/commands/data-processing/images/splittextcommand-03.png" />

<img src="https://mintcdn.com/bazhuayu-rpa-docs/QLw4prvAN-mejJU5/helpcenter/commands/data-processing/images/splittextcommand-02.png?fit=max&auto=format&n=QLw4prvAN-mejJU5&q=85&s=df7022ea0b90aa9a8470fe66595018b1" alt="拆分文本使用示例 - 流程搭建" width="949" height="305" data-path="helpcenter/commands/data-processing/images/splittextcommand-02.png" />

**该流程执行逻辑：**

本例演示【拆分文本】指令的配置与执行：

1. 输入待拆分的文本，并设置分隔符类型和是否过滤空白项。
2. 按分隔规则将文本拆分为列表，并把结果保存到指定变量。

### 效果展示

<img src="https://mintcdn.com/bazhuayu-rpa-docs/QLw4prvAN-mejJU5/helpcenter/commands/data-processing/images/splittextcommand-04.png?fit=max&auto=format&n=QLw4prvAN-mejJU5&q=85&s=f4676c1a1797c3a5dc2ee8a5c048ca0a" alt="拆分文本使用示例 - 效果展示" width="1360" height="498" data-path="helpcenter/commands/data-processing/images/splittextcommand-04.png" />

<Info>
  使用指令过程中遇到问题？前往 [八爪鱼RPA 开发者社区问答板块](https://rpa.bazhuayu.com/community/questions) 提问，获取官方与社区帮助。
</Info>
