This article introduces how to use the batch find and replace function in office software Word, perform fuzzy matching of keywords in multiple docx and doc documents through regular expressions, and leave the replacement content empty to achieve batch deletion. It is suitable for processing repetitive content such as fixed-format numbering, English abbreviations, numbers, and sensitive fields in documents, avoiding the need to open Word one by one to manually find and delete, thereby improving the efficiency of batch file organization.
When organizing a large number of Word documents, you may often encounter this situation: multiple docx or doc files contain content that needs to be deleted, but the content is not exactly the same—for example, three-letter uppercase English abbreviations, consecutive numbers, serial numbers, codes, course identifiers, etc. If you open each Word document individually to manually search and then delete them one by one, it is not only time-consuming but also prone to omissions.
This article uses the example of "using regular expressions to batch fuzzy delete keywords in many Word files" to introduce how to leverage office software like HeSoft Doc Batch Tool to perform batch find and replace across multiple Word files. By selecting "Use formula to fuzzy find text," entering rules like [A-Z]{3}, \d+, and leaving the replacement content empty, you can achieve batch deletion of the matched content.
Applicable Scenarios: Which Word Content is Suitable for Batch Deletion Using Regular Expressions
Regular expressions are suitable for handling Word keyword deletion tasks where "the content has a pattern, but the specific text is not fixed." Compared to ordinary searching for a fixed word, regular expressions can match a category of content in one go, making them more suitable for batch office scenarios.
- Batch delete consecutive numbers in multiple Word documents, such as student IDs, serial numbers, page numbers, duration numbers, etc.
- Batch delete fixed-length uppercase English abbreviations, such as three-letter course codes, department codes, tag codes, etc.
- Batch delete keywords in docx and doc files that have similar formats but different content.
- Batch clean up sensitive information, template residual fields, or identifiers that do not need to be displayed in documents.
- Batch process multiple Word files in a folder, reducing the repetitive operations of opening, finding, deleting, and saving.
The sample files in the screenshot include 6 Word documents, named 1.docx to 6.docx, and some English abbreviations and numbers in these documents need to be fuzzily deleted.
Effect Preview: Word Content Changes Before and After Processing
Before Processing: Multiple docx Files Need Unified Keyword Cleanup
Before processing, the folder contains multiple Word documents, and these docx files need a unified keyword deletion operation. If you process them one by one, the more files there are, the more obvious the repetitive labor becomes.

Opening one of the Word documents reveals that there is content in the body text that needs to be deleted. For example, BOT at the beginning of the title, and the number 60 in the body text, are all targets for this cleanup.

After Processing: Matched English Abbreviations and Numbers Are Batch Deleted
After processing is complete, open the Word document again to check. You can see that the three-letter uppercase English abbreviation in the original title has been deleted, and the matched numbers in the body text have also been deleted. This means that the software does not just delete a single fixed word, but rather batch finds and deletes content that meets the conditions according to the regular expression rules.

This method is particularly suitable for batch processing patterned text in a large number of Word files, such as "all consecutive numbers," "all three-letter uppercase letters," "a certain type of serial number format," etc.
Operation Steps: Using Regular Expressions to Batch Fuzzy Delete Word Keywords
Step 1: Enter the Word Tool and Select the Find and Replace Function
Open HeSoft Doc Batch Tool , and select Word Tools on the left side. Find and click "Find and Replace Keywords in Word" in the tool list. This function is used for batch finding and replacing keywords in Word file content, and can also achieve batch deletion by "replacing with empty".

The purpose of this step is to enter the Word content batch processing function module. For tasks that require batch deletion of keywords in docx or doc documents, you should choose the tool related to "Find and Replace Word Keywords," not tools for file names, folder names, or PDF tools.
Step 2: Add the Word Files to Be Batch Processed
After entering the function page, in Step 1 "Select records to process", click "Add Files" to add the Word documents that need to be processed to the list. If the files are centrally located in the same folder, you can also use the "Import files from folder" option in the interface.

After adding, the list will display information such as file name, path, extension, creation time, and modification time. The screenshot shows that 6 docx files have been imported, indicating that these files will all participate in the subsequent batch find and replace. After confirming the files are correct, click "Next" at the bottom to enter the processing option settings.
Step 3: Select "Use Formula to Fuzzy Find Text"
In Step 2 "Set processing options", find "Find Method". If you only want to delete fixed text, you can use exact find; but the goal of this article is to batch fuzzy delete a category of keywords, so you need to select "Use formula to fuzzy find text".

The "Use formula to fuzzy find text" here can be understood as using regular expression rules for matching. It is suitable for finding content that is not exactly the same but shares a common pattern. For example, the screenshot uses two rules:
- [A-Z]{3}: Matches three consecutive uppercase English letters, such as abbreviations like BOT.
- \d+: Matches consecutive numbers, such as 60, 100, 2026, etc.
These rules are filled in the left-hand "List of keywords to find". The software will batch search for matching content in the imported multiple Word files according to the rules in the list.
Step 4: Leave the Replaced Keyword List Empty to Achieve the Deletion Effect
In the right-hand "List of keywords after replacement" area, the interface prompts "Leave blank means delete". Therefore, if the goal is to delete the matched keywords rather than replace them with other text, do not fill in the replacement content.
This step is critical: the left side tells the software "what to find," and the empty right side means "delete after finding." For example:
- Left side: [A-Z]{3}, right side empty: Delete all matched three-letter uppercase English abbreviations.
- Left side: \d+, right side empty: Delete all matched consecutive numbers.
After completing the settings, click "Next". Then, follow the page flow to continue setting the save location and start processing. After processing is complete, you can go to the output location to check the batch-deleted Word documents.
Frequently Asked Questions and Notes
1. Why use regular expressions instead of ordinary find?
Ordinary find is suitable for deleting identical, fixed text, such as deleting "test text" from every document. But if you need to delete a category of content, such as all numbers, all three uppercase letters, or a certain number format, ordinary find is not efficient enough. Regular expressions can match by pattern, making them suitable for batch fuzzy deletion of Word keywords.
2. Will leaving the replacement content empty delete the entire paragraph?
No. When the replacement list is left empty, the software will delete the specific part of the content matched by the regular expression. For example, \d+ only matches consecutive numbers and usually does not delete text other than the numbers. However, if the regular expression is written too broadly, it might match more content than expected, so it is recommended to test with a small number of files first.
3. What should be noted when processing doc and docx files?
The examples in this article's screenshots are docx files. In actual processing, it is recommended to first confirm whether the Word file format to be processed is supported by the software's current functions, and to use backup files for initial testing whenever possible. Before batch processing, keeping copies of the original documents is a safer office habit.
4. Does regular expression case-sensitivity affect matching results?
Yes, it does. In the screenshot, [A-Z]{3} means matching three consecutive uppercase English letters and will not match lowercase letters. If you need to handle content with different cases, adjust the expression according to the actual rules. The interface also provides an "Ignore letter case" option, which you can decide whether to check based on your cleanup needs.
5. What checks are recommended before batch deletion?
It is recommended to first select 1 or 2 Word files for testing, and confirm the deletion effect meets expectations before batch processing the entire folder. Especially when using rules like \d+, which matches all consecutive numbers, if the document also contains page numbers, years, or serial numbers that need to be kept, you must set the rules carefully.
Summary: Batch Processing Word with Office Software to Reduce Repetitive Deletion Work
Using regular expressions to batch fuzzy delete keywords in Word can transform the repetitive work of opening one by one, searching item by item, and deleting place by place into a one-time batch process. For office scenarios involving a large number of docx and doc files, this method significantly saves time and reduces the risk of human omission.
If your Word documents contain numbers, English abbreviations, serial numbers, or sensitive fields with fixed patterns, you can use the "Find and Replace Keywords in Word" feature in HeSoft Doc Batch Tool , select formula fuzzy text find, fill in the regular expression, and leave the replacement content empty to complete the batch deletion. It is recommended to first verify the rules with a small number of files before performing batch processing on all Word files.