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

# ReplaceText - ComfyUI Built-in Node Documentation

> Complete documentation for the ReplaceText 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/ReplaceText/zh.md)

Replace Text 节点执行简单的文本替换操作。它在输入文本中搜索指定的文本片段，并将所有匹配项替换为新的文本片段。该操作将应用于提供给节点的所有文本输入。

## 输入参数

| 参数        | 数据类型   | 必填 | 取值范围 | 描述                     |
| --------- | ------ | -- | ---- | ---------------------- |
| `text`    | STRING | 是  | -    | 需要处理的文本。               |
| `find`    | STRING | 否  | -    | 需要查找并替换的文本（默认：空字符串）。   |
| `replace` | STRING | 否  | -    | 用于替换找到文本的新文本（默认：空字符串）。 |

## 输出结果

| 输出名称   | 数据类型   | 描述                                           |
| ------ | ------ | -------------------------------------------- |
| `text` | STRING | 处理后的文本，其中所有 `find` 文本的匹配项都已替换为 `replace` 文本。 |
