Many people encounter the problem of needing to delete numbers but not wanting to manually modify them one by one when organizing txt files, log files, collection results, or exported data. This article will combine the actual operation interface of the office software " HeSoft Doc Batch Tool " to demonstrate how to use the "Find and Replace Text Keywords" feature with regular expression formulas to batch delete numbers from txt files in a fuzzy manner. After reading, you can quickly master the complete process from importing multiple text files, setting fuzzy search formulas, to performing batch replacement and deletion, which is especially suitable for office scenarios that require efficient processing of large numbers of txt files.
In daily office work, many people encounter this situation: a batch of TXT text files contains a large number of digits that need to be removed uniformly, but with a large number of files and complex content, manual editing is not only slow but also prone to missing changes. This is a common requirement when cleaning collected texts, organizing log content, processing export results, or removing numbering or sequences.
If you want batch deletion of digits in TXT files and need support for fuzzy matching, using the regular expression Find & Replace feature in office software is much more efficient than manually opening TXT files one by one. Below, using HeSoft Doc Batch Tool as an example, we will explain how to batch process multiple text files to delete digits using a regular expression formula.
Applicable Scenarios
This method is suitable for the following office scenarios:
- Batch cleaning of TXT text content: Deleting numeric portions of numbering, sequences, dates, or random digit strings in text.
- Batch organizing logs or exported text: Removing useless numeric information, retaining the main text body.
- Batch processing collected content: Clearing numeric interference items from collection results for easier subsequent analysis or archiving.
- Repetitive file processing: When you have dozens or hundreds of TXT files, the batch capability of office software can significantly reduce repetitive labor.
If your goal is to process a whole batch of TXT documents at once, rather than just a single file, these types of batch text tools offer greater advantages.
Effect Preview: Before and After Processing
The goal of this article is to use regular expressions to find all digits and replace the matched content with nothing, thus achieving the "deleting digits" effect.
Before processing: The TXT file contains various digits, such as years, numbers, quantities, sequences, or continuous digit strings.

After processing: All compliant digit content is batch deleted, leaving only other text content.

As seen in the screenshots, when setting processing options in the software, you enter the keyword formula to find in the left input field, and leave the replacement content empty in the right field. The interface also clearly indicates "Leave blank to delete". This means the found digits will be deleted directly, rather than replaced with other characters.
Operating Steps
Step 1: Enter the Text Tools and select the Find & Replace function
From the main interface of the software, you can see that the left side is positioned on "Text Tools". In the function cards on the right, select "Find and Replace Keywords in Text".

The purpose of this step is to enter the processing flow for batch finding and replacing text content. Because you need to delete digit content in TXT files, choosing the text Find & Replace function here is the most direct entry point.
Expected result: Enter the "Find and Replace Keywords in Text" interface, ready to import the TXT files that need processing.
Step 2: Add the TXT files to be batch processed
After entering the function page, the software will first bring you to Step 1: Select records to process. As seen in the screenshot, the top right corner of the page provides two entry points: "Add Files" and "Import Files from Folder".

If you have a small number of TXT files, you can directly click "Add Files" to import them one by one; if the files are all in the same folder, it's more efficient to use "Import Files from Folder".
After importing, the software will display the following in the list:
- File Name
- File Path
- Extension
- Creation Time
- Modification Time
The screenshot shows 10 TXT files have been successfully imported, indicating that this office software supports one-time batch processing of multiple text files, rather than single-file operation.
Expected result: All TXT files to be processed appear in the list, then click "Next" at the bottom to continue.
Step 3: Choose to use a formula for fuzzy text search
After entering Step 2 "Set processing options", first look at the "Search Method" area. There are two methods:
- Precise Text Search
- Use Formula for Fuzzy Text Search
Since this article is about batch fuzzy deletion of digits in TXT, you should choose "Use Formula for Fuzzy Text Search".
This step is critical. Because digits in the text might be a single number or multiple consecutive numbers, a regular precise search is not flexible enough, while a regular expression formula is more suitable for batch matching this kind of variable content.

Expected result: The fuzzy search mode is enabled, allowing input of a regular expression formula.
Step 4: Enter the regular expression formula \d+
In the left "List of Keywords to Find", enter the formula: \d+
The meaning of this formula can be simply understood as:
- \d: Matches a digit character
- +: Matches one or more consecutive occurrences of digits
That is to say, \d+ can match any continuous string of digits in the text. Whether it's 1, 23, 2026, or 10086, it will be identified.
This is the core setting of what this article calls "using a regular expression formula to batch fuzzy delete digits in TXT".
Expected result: The software will use this formula to batch search for digit content in each TXT file.
Step 5: Leave the replacement content blank to achieve digit deletion
In the right "Replacement Keyword List" area, the screenshot provides a clear prompt: "Leave blank to delete".
Therefore, you do not need to fill in any content here; just leave it empty. This way, when the software performs the replacement, it will directly delete the matched digits.
The logic here is actually very simple:
- Left side: Enter the content to find: \d+
- Right side: Leave the replacement content empty: means deletion
Expected result: All matched digits will be removed during the batch processing.
Step 6: Proceed to the next step and execute the batch process
After completing the formula and replacement content settings, click "Next" at the bottom, and follow the workflow to set the save location and start processing.
Although the screenshots primarily show the first two steps, it is clear from the progress bar at the top of the page that subsequent steps include:
- Set save location
- Start processing
That is, the entire workflow follows a standard batch file processing model: first import files, then set rules, then specify the output location, and finally execute uniformly. For cleaning a large number of TXT files in an office scenario, this workflow is very practical.
Expected result: The software completes the digit deletion operation for multiple TXT files in batch, avoiding manual processing one by one.
FAQ and Important Notes
1. Why use regular expressions instead of a regular search?
Because a regular search is more suitable for fixed text, like deleting a specific word; digits in TXT files are usually not fixed content, possibly differing in length and position. Using the regular expression \d+ can match all consecutive digits in one go, making it more suitable for fuzzy deletion.
2. Why should the replacement content be left blank?
Based on the interface prompt in the screenshot, leaving it blank means deletion. So if your goal is to delete digits, not replace them with other symbols, you should leave it blank.
3. How many TXT files can this method process in a batch?
It can be confirmed from the screenshot that the software supports importing multiple TXT files at once and processing them uniformly in a list. For office tasks requiring batch text processing to reduce repetitive work, this method is much more efficient than opening and editing TXT files one by one.
4. Will other text content be preserved after deletion?
Yes. Because the current setting only searches for and matches the digit content of \d+, other unmatched text will not be deleted.
5. Can it only process TXT files?
Based on the current screenshot and the topic of this article, the demonstration targets are TXT text files. In actual operation, it is recommended to prioritize use for the TXT batch processing scenario corresponding to this article to ensure the processing target aligns with the current function.
Summary
If you often need to delete digits in TXT files in batch, using the regular expression Find & Replace feature in office software is much more efficient than manual editing. Through HeSoft Doc Batch Tool , you only need to complete these core actions: enter Text Tools, open Find and Replace Keywords in Text, import multiple TXT files, choose Use Formula for Fuzzy Text Search, enter \d+, and leave the replacement content blank to batch delete digits.
For office workers who need to clean large amounts of text, process logs, organize collection results, or standardize text content uniformly, this batch processing method can significantly reduce repetitive labor and improve file processing efficiency.
If you currently have a batch of TXT files that need digit removal, it is recommended to follow the steps in this article directly. Test the results with a few samples first, confirm accuracy, and then batch process all files, which is both safe and efficient.