Diysb Tools

文本替换器

用新内容替换文本模式。

文本工具

文本替换器

使用这款基于浏览器的简单工具,轻松替换内容中的特定文本。只需输入文本,设置要替换的文本和替换值,即可立即获取更新版本。

要替换的文本
带替换的文本
工具选项
搜索文本
在文本中查找此模式
输入您想要替换的文本模式。
使用正则表达式查找模式
替换文本
输入用于替换的模式。
文本替换器 示例

Replace a Word

Replace all occurrences of "cat" with "dog" in the text.

The cat sat on the mat. The cat is happy.
The cat sat on the mat. The cat is happy.
The dog sat on the mat. The dog is happy.
The dog sat on the mat. The dog is happy.
搜索文本
在文本中查找此模式
输入您想要替换的文本模式。
使用正则表达式查找模式
替换文本
输入用于替换的模式。

Replace Using Regex

Use a regular expression to replace all numbers with "X".

Order 123 contains 45 items costing 6.78 each.
Order 123 contains 45 items costing 6.78 each.
Order XXX contains XX items costing X.XX each.
Order XXX contains XX items costing X.XX each.
搜索文本
在文本中查找此模式
使用正则表达式查找模式
输入要替换的正则表达式。
替换文本
输入用于替换的模式。

Replace Multiple Spaces

Replace multiple spaces with a single space using regex.

Hello world this is spaced out
Hello world this is spaced out
Hello world this is spaced out
Hello world this is spaced out
搜索文本
在文本中查找此模式
使用正则表达式查找模式
输入要替换的正则表达式。
替换文本
输入用于替换的模式。