> ## 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

> The StringSubstring node extracts a portion of text from a larger string.

The StringSubstring node extracts a portion of text from a larger string. It takes a starting position and ending position to define the section you want to extract, then returns the text between those two positions.

## Inputs

| Parameter | Description | Data Type | Required | Range |
| - | - | - | - | - |
| `string` | The input text string to extract from. Supports multi-line text. | STRING | Yes | - |
| `start` | The starting position index for the substring. The first character is at index 0. | INT | Yes | - |
| `end` | The ending position index for the substring. The character at this index is not included in the result. | INT | Yes | - |

## Outputs

| Output Name | Description | Data Type |
| - | - | - |
| `output` | The extracted substring from the input text, containing all characters from the `start` position up to (but not including) the `end` position. | STRING |

> This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! [Edit on GitHub](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/StringSubstring/en.md)

***

**Source fingerprint (SHA-256):** `fd3ec23bbfe3a51f5481f1b0fe8b77f66e08469bb2a4bd3e266a7607f014e544`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.