跳到主要内容

快速批量查找并替换多个Word或txt / html文件中的多个字符串

在Word中,通过内置的“查找和替换”功能,可以很容易地在当前编辑文档中一次查找和替换一个字符串。 但是,有时,您可能想一次搜索并替换多个Word文档或txt / html文件中的多个字符串。 在这里 批量查找和替换 的工具 Kutools for Word 会帮你一个忙。

批量查找并替换多个Word文档中的多个字符串

批量查找并用多个Word文档中的特定格式替换多个字符串

批量查找并替换多个Word文档中的特殊字符

批量查找并替换多个txt / htm / html文件中的多个字符串


批量查找并替换多个Word文档中的多个字符串

随着 批量查找和替换 工具,您可以快速搜索多个字符串,并用多个Word文档中的新字符串替换它们,包括关闭的字符串。 请按照以下步骤操作:

1。 点击 Kutools 加 > 批量查找和替换,请参见屏幕截图:

2.在弹出 批量查找和替换 对话框的右侧部分中,选择 * .doc * 来自 文件类型 下拉列表,然后单击 按钮添加您要查找的文档并替换字符串。

3.仍在 批量查找和替换 对话框中,这一步,您应该创建搜索条件,请单击 添加行 从下方的顶部色带 查找和替换 标签:

  • 在插入的行字段中,将找到的文本输入到 找到最适合您的地方 柱;
  • 然后,将您要替换为的文本输入到 更换 柱;
  • 然后,从下拉列表中指定搜索类型,如果您不需要任何搜索类型, 不包含 将显示在该字段中;
  • 然后,从下方选择要查找文本的范围 查找 默认情况下, 主要文件 被选中,您可以在页眉,页脚,脚注等中查找和替换;
  • 最后,您可以根据需要指定颜色以突出显示文本。

备注:如果要删除搜索条件,只需选择条件行,然后单击 删除行 从顶部的功能区。

4.创建搜索条件后,单击 找到最适合您的地方 or 更换 根据需要,然后转到 预览结果 标签以查看查找和替换结果。

5。 点击 关闭 按钮在 批量查找和替换 对话框,将弹出一个提示框,提醒您是否要保存此方案,请单击 保存它,然后单击 没有 要忽略它,请参见屏幕截图:

6.如果单击 ,将显示另一个提示框,请为此情况输入名称,请参见屏幕截图:

7.然后,单击 Ok 关闭对话框,场景也将被保存。


批量查找并用多个Word文档中的特定格式替换多个字符串

有时,您可能想要查找具有特定格式(例如粗体文本)的文本字符串,然后立即将其替换为另一种文本并设置格式。 的 批量查找和替换 功能也可以帮您一个忙。

1。 点击 Kutools 加 > 批量查找和替换 批量查找和替换 对话框。

2.在弹出 批量查找和替换 对话框,请执行以下操作:

  • 在右侧部分中,选择 * .doc * 来自 文件类型 下拉列表,然后单击 按钮添加您要查找的文件并替换字符串;
  • 在左侧列表框中,单击 添加行 要插入条件字段,请分别在字段中输入查找和替换文本字符串,然后根据需要指定搜索类型和搜索范围,最后,选择旧文本的查找格式和想要的新替换格式查找和替换。

3.创建条件后,然后单击 更换 or 找到最适合您的地方 您需要找到所有具有特定格式的文本字符串,或将其替换为具有指定格式的新字符串。


批量查找并替换多个Word文档中的特殊字符

如果要查找某些特定字符并将其替换为多个单词文件中的其他新字符,请执行以下操作:

1。 点击 Kutools 加 > 批量查找和替换批量查找和替换 对话框。

2.在弹出 批量查找和替换 对话框,请执行以下操作:

  • 在右侧部分中,选择 * .doc * 来自 文件类型 下拉列表,然后单击 按钮添加您要查找的文件并替换字符串;
  • 在左侧列表框中,单击 添加行 以插入条件字段,然后在文本框中单击 找到最适合您的地方 列,然后单击 Special 按钮,在展开的列表中,选择要查找的字符;

3.然后,在 更换 列中,输入或选择要替换原始字符的特定字符,请参见屏幕截图:

4.最后,单击 更换 要查找和替换字符,您可以通过转到 预览结果 标签,请参见屏幕截图:


批量查找并替换多个txt / htm / html文件中的多个字符串

如果要查找并替换txt,htm和html文件中的多个字符串,请执行以下步骤:

1。 点击 Kutools 加 > 批量查找和替换.

2.在 批量查找和替换 窗口,请执行以下操作:

  • 在右侧部分中,选择 * .txt; *。htm; *。html 来自 文件类型 下拉列表,然后单击 按钮添加您要查找的文档并替换字符串;
  • 在左侧列表框中,单击 添加行 插入条件字段,然后分别在字段中输入查找和替换文本字符串。

3。 点击 更换 or 找到最适合您的地方 按钮以获取您的需求。


提示:

1.创建搜索条件后,您可以保存场景并在下次再次使用。 请点击 保存 对话框顶部功能区中的“按钮”,在弹出的对话框中,键入方案的名称,然后单击“确定”。 Ok 保存它。

2.要重复使用保存的方案,可以单击 可选 按钮可以快速轻松地选择并打开一个方案。

3. :点击此 关闭 按钮可立即关闭当前场景。

4.如果要管理已保存的方案,请单击 管理 按钮去 方案管理 对话框中 方案管理 窗口中,您可以根据需要重命名,删除,移动,导出和导入方案,请参见屏幕截图:

5.如果要导出搜索或将结果替换为报告,请检查 导出报告 复选框,然后单击 找到最适合您的地方 or 更换 按钮。 当您关闭 批量查找和替换 对话框,会弹出一个提示框,提醒您报告的保存路径,您可以根据需要打开报告文件。 看截图:


最佳办公生产力工具

Kutools for Word - 通过 Over 提升您的文字体验 100 显着特点!

🤖 Kutools 人工智能助手:用人工智能改变你的写作 - 生成内容  /  波兰语文本 为了清晰起见 /  总结文件  /  查询资料 基于文档,全部在Word中

📘 文档掌握: 分页  /  合并文件  /  以各种格式导出选择(PDF/TXT/DOC/HTML...)  /  批量转换为PDF  /  将页面导出为图像  /  一次打印多个文件...

内容编辑: 批量查找和替换 跨多个文件  /  调整所有图片的大小  /  转置表行和列  /  将表格转换为文字...

🧹 轻松清洁: 移开 多余的空间  /  分节符  /  所有标题  /  文本框  /  超链接  / 如需更多拆卸工具,请前往我们的 删除组...

创意插入: 插 千位分隔符  /  复选框  /  单选按钮  /  扫码支付  /  条码  /  对角线表  /  公式标题  /  图片说明  /  表标题  /  多张图片  / 发现更多 插入组...

🔍 精准选择:精确定位 特定页面  /    /  形状  /  标题段落  / 增强导航功能 更多 选择功能...

星级增强: 快速导航至任何位置  /  自动插入重复文本  /  在文档窗口之间无缝切换  /  11 转换工具...

👉 想尝试这些功能吗? Kutools for Word 提供了 60-day免费试用,没有任何限制! 🚀
 
Comments (13)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
when i use Kutools plus for Word, I get the following error message when trying to save my batch find and replace file:

"missing or invalid value (lookup column)"

Can you please tell me how I can resolve this, as it is a long list and I need to use it again.

Also, is there a way to import such a long list, as typing each line individually takes ages.

Thanks
This comment was minimized by the moderator on the site
We apologize for the inconvenience you encountered while using our feature. Typically, this issue may arise if the document you are looking for does not exist or if the search criteria do not match. Please provide us with a screenshot of your operation interface so that we can further understand the issue and provide the appropriate solution.
This comment was minimized by the moderator on the site
Batch Find and Replace: I want to remove yellow highlighting from ALL the text in multiple word files. Is there a way to do that via your Batch Find and Replace routine? Otherwise a great product!
Thanks
This comment was minimized by the moderator on the site
Hello, currently, we do not have the capability to search and replace by color. I will provide your feedback to our technical team, and this feature may be added in future versions. Thank you.
This comment was minimized by the moderator on the site
是否可以加入excel匯入批量尋找
不然逐項列,也是挺花時間的
This comment was minimized by the moderator on the site
你好,感谢你的建议,我已将此建议反馈到技术部,待讨论后后续版本可能会有所升级。
This comment was minimized by the moderator on the site
Hola.
Gracias por la aportación,, muy útil. pero quisiera saber donde se guardan los nuevos archivos porque no los encuentro.
Un saludo y gracias.
This comment was minimized by the moderator on the site
Hi, the Batch Find and Replace function will find and replace the values in the original files, just go to the original path to view the replacing result. If you want to konw the path of the exported resport, please go to C:\Users\AddinTestrWin10\Documents\Kutools for Word\FindAndReplaceReport.
This comment was minimized by the moderator on the site
Thank you, I didn't realise the replacement wasn't suitable because there were 2 spaces between 2 words instead of 1 space, as soon I realised the mistake, the replacement was perfect.
Thank you very much. It's very useful.
This comment was minimized by the moderator on the site
is there no option to load the columns (find and replace) from excel so as to not type manually words in the file.
This comment was minimized by the moderator on the site
If a user enters tens of thousands of words in a scenario and finds a wrong word while using it, how do the user find and correct the wrong word? There should be a function to search for the wrong word in the scenario.
This comment was minimized by the moderator on the site
I think your product is good. If users have many words to save or have different replacement options, users can create multiple scenarios. it would be nice if the user could create each task with multiple scenarios, edit the execution order of the scenarios, and allow the user to run multiple scenarios for each task at once. Depending on the order in which words are replaced, the replaced result may be different. Also, it would be nice to have a sort function for the words to find.
This comment was minimized by the moderator on the site
sería asombroso que además permitiera reemplazar el formato del texto
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations