> ## 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/GBkSeqm2b688g4En/helpcenter/commands/data-processing/images/getsubtextcommand-01.png?fit=max&auto=format&n=GBkSeqm2b688g4En&q=85&s=60aebf906780ec8ec5775528fc454e0f" alt="截取文本指令参数面板" width="653" height="470" data-path="helpcenter/commands/data-processing/images/getsubtextcommand-01.png" />

    | 参数        | 说明                                    |
    | --------- | ------------------------------------- |
    | **原始文本**  | 输入待截取的文本内容或字符串变量                      |
    | **截取方式**  | 截取到文本末尾 、 截取指定长度：输入你要截取的字符数量          |
    | **保存结果至** | 保存截取到的文本为变量。即指定一个变量名称，该变量用于保存截取到的文本内容 |
  </Tab>

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

## 使用示例

<img src="https://mintcdn.com/bazhuayu-rpa-docs/GBkSeqm2b688g4En/helpcenter/commands/data-processing/images/getsubtextcommand-03.png?fit=max&auto=format&n=GBkSeqm2b688g4En&q=85&s=02836296fe0bd003ceac7b7147a3f589" alt="截取文本使用示例" width="650" height="523" data-path="helpcenter/commands/data-processing/images/getsubtextcommand-03.png" />

<img src="https://mintcdn.com/bazhuayu-rpa-docs/GBkSeqm2b688g4En/helpcenter/commands/data-processing/images/getsubtextcommand-02.png?fit=max&auto=format&n=GBkSeqm2b688g4En&q=85&s=32542ec3e6554b0304ef1b24cb4f49fe" alt="截取文本使用示例 - 流程搭建" width="1026" height="289" data-path="helpcenter/commands/data-processing/images/getsubtextcommand-02.png" />

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

执行【新建变量】指令新建一个变量：八爪鱼rpa

使用【截取文本】指令从第一个字符开始截取3个字符串长度的文本并保存结果

### 效果展示

<img src="https://mintcdn.com/bazhuayu-rpa-docs/GBkSeqm2b688g4En/helpcenter/commands/data-processing/images/getsubtextcommand-04.png?fit=max&auto=format&n=GBkSeqm2b688g4En&q=85&s=b67a893c5a079daceee8fdcdb84350f9" alt="截取文本使用示例 - 效果展示" width="1357" height="348" data-path="helpcenter/commands/data-processing/images/getsubtextcommand-04.png" />

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