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

# ReplaceText - ComfyUI Built-in Node Documentation

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

替换文本节点执行简单的文本替换操作。它会在输入文本中搜索指定的文本片段，并将每次出现的内容替换为新的文本片段。该操作将应用于提供给节点的所有文本输入。

## 输入

| 参数     | 描述               | 数据类型   | 是否必填 | 范围 |
| ------ | ---------------- | ------ | ---- | -- |
| `text` | 要处理的文本。          | STRING | 是    | -  |
| `搜索`   | 要查找的文本（默认：空字符串）。 | STRING | 是    | -  |
| `替换`   | 要替换的文本（默认：空字符串）。 | STRING | 是    | -  |

## 输出

| 输出名称 | 描述                                     | 数据类型   |
| ---- | -------------------------------------- | ------ |
| `文本` | 处理后的文本，其中所有 `搜索` 文本的出现位置均被替换为 `替换` 文本。 | STRING |

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

***

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