查找和替换文本
替换所有字面匹配,无需正则表达式,也不经服务器处理。
输入
提示:按 Ctrl + Enter 运行
已保存的设置
下方的详细帮助目前仅提供英文版。
关于此工具
Change a name throughout a document, swap British spellings for American ones, or replace a placeholder in a template. This tool replaces every literal occurrence of the text you search for. It is case-sensitive and does not interpret special characters, so a full stop or a bracket is matched as typed, which avoids the surprises of regular expressions.
For pattern matching, use the regex tester to build and check an expression.
使用方法
- Paste the text into the main box.
- Enter the exact text to find, including capitals.
- Enter the replacement (leave it empty to delete the matches).
- Run it and copy the result; repeat for other capitalizations if needed.
计算原理
All non-overlapping, case-sensitive literal matches are replaced from left to right. Partial matches inside longer words are replaced too.
计算示例
Converting "Colour and colours and COLOUR" with find "colour" and replace "color" gives "Colour and colors and COLOUR". Only the lowercase occurrence matched, including the one inside "colours"; run it again with "Colour" and "COLOUR" to change the others.
示例输入和结果
你好 世界 → 嗨 世界
局限性
- Literal, case-sensitive matching only.
- One search term at a time.
- Up to 100,000 characters.
最后更新:
常见问题
Can it ignore case?
No, matching is exact. Run it once for each capitalization you need to change.
Will it replace part of a word?
Yes. Searching for "cat" also changes "category". Add spaces around the word in both boxes to limit it.
Can I use wildcards?
No. Special characters are matched literally. Use the regex tester for patterns.
故障排除
Nothing was replaced.
Check capitalization and invisible characters such as curly quotes (’) versus straight quotes (').
Too much was replaced.
The search text also appears inside other words. Include surrounding spaces or punctuation.
Line breaks cannot be searched.
This tool searches within the text as entered; for multi-line patterns use a text editor or the regex tester.
隐私 & 免费使用
我的输入会被保存吗?
你的数据只保留在此标签页中。我们不会收到你的文件、粘贴的文本或计算数值。
这个工具免费吗?
是的。无需注册或付费。