> ## Documentation Index
> Fetch the complete documentation index at: https://dripart-docs-recommend-assets-api.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# StringReplace - ComfyUI Built-in Node Documentation

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

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

StringReplace 节点对输入字符串执行文本替换操作。它会在输入文本中搜索指定的子字符串，并将所有匹配项替换为不同的子字符串。该节点返回应用了所有替换操作后的修改字符串。

## 输入参数

| 参数        | 数据类型   | 必填 | 取值范围 | 描述                |
| --------- | ------ | -- | ---- | ----------------- |
| `string`  | STRING | 是  | -    | 将执行替换操作的输入文本字符串   |
| `find`    | STRING | 是  | -    | 在输入文本中要搜索的子字符串    |
| `replace` | STRING | 是  | -    | 用于替换所有找到的匹配项的文本内容 |

## 输出结果

| 输出名称     | 数据类型   | 描述                           |
| -------- | ------ | ---------------------------- |
| `output` | STRING | 经过修改的字符串，其中所有查找到的文本均已被替换文本替换 |
