> ## Documentation Index
> Fetch the complete documentation index at: https://docs.comfy.org/llms.txt
> Use this file to discover all available pages before exploring further.

# StringSubstring - ComfyUI Built-in Node Documentation

> Complete documentation for the StringSubstring node in ComfyUI. Learn its inputs, outputs, parameters and usage.

StringSubstring 节点用于从较长的字符串中提取一部分文本。它通过指定起始位置和结束位置来定义要提取的区间，并返回这两个位置之间的文本。

## 输入

| 参数    | 描述                          | 数据类型   | 是否必填 | 范围 |
| ----- | --------------------------- | ------ | ---- | -- |
| `字符串` | 要从中提取文本的输入字符串。支持多行文本。       | STRING | 是    | -  |
| `起始`  | 子字符串的起始位置索引。第一个字符的索引为 0。    | INT    | 是    | -  |
| `结束`  | 子字符串的结束位置索引。此索引处的字符不包含在结果中。 | INT    | 是    | -  |

## 输出

| 输出名称     | 描述                                              | 数据类型   |
| -------- | ----------------------------------------------- | ------ |
| `output` | 从输入文本中提取的子字符串，包含从 `起始` 位置开始到（但不包括）`结束` 位置的所有字符。 | STRING |

> 本文档由 AI 生成。如果您发现任何错误或有改进建议，欢迎贡献！ [在 GitHub 上编辑](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/StringSubstring/zh.md)

***

**Source fingerprint (SHA-256):** `962d0b19af88b6c95b5c9d374081ecd55ee8cffbfb638de7ed38e6e378b220c5`
