按普通文本或正则模式查找并批量替换,支持忽略大小写、全词匹配与反向引用
普通文本或正则模式查找,支持忽略大小写、全词匹配与反向引用,整段文本一键批量替换,本地处理零上传。
了解普通/正则模式、反向引用与常见问题。Literal vs regex mode, backreferences, and answers to common questions.
文本查找替换工具按查找内容(普通文本或正则表达式)匹配并批量替换整段文本。支持忽略大小写、全词匹配,正则模式可配合 () 分组与 $1、$2 等反向引用。
This tool matches text by a find pattern (literal or regex) and bulk-replaces across the whole input. Case-insensitivity and whole-word matching are supported; regex mode allows () groups and $1, $2 backreferences.
全部在浏览器本地完成,数据不会上传。
Everything runs locally in your browser - nothing is uploaded.
勾选「正则」后,查找内容按正则解析。例如 (\d{4})-(\d{2})-(\d{2}) 可匹配 2026-08-01,替换为 $1/$2/$3 得 2026/08/01。普通文本模式会自动转义特殊字符,避免误匹配。
With "regex" enabled, the find field is parsed as a regular expression. E.g. (\d{4})-(\d{2})-(\d{2}) matches 2026-08-01 and replacing with $1/$2/$3 gives 2026/08/01. Literal mode auto-escapes special characters to avoid false matches.
不会,普通模式会自动转义特殊字符;需要正则能力时勾选「正则」。No - literal mode auto-escapes special characters; enable "regex" for regex power.
在正则里用 () 分组,替换为输入 $1、$2 引用对应分组内容,$& 表示整个匹配。Use () groups in the regex and reference them as $1, $2 in the replacement; $& refers to the whole match.
原输入保持不变,结果单独显示在右侧,确认无误后手动复制即可。Your source stays untouched; the result appears separately on the right for review before you copy it.