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

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

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

## Outputs

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

***

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