Usually our Word file has a whole paragraph of text that needs to be deleted. This method can be used to batch delete the paragraph according to the keyword words appearing in this paragraph of text. This kind of paragraphs may contain archiving, records or comments of contact information. After the final version is determined, it should be deleted uniformly. We can fuzzy search out the numbers, names, etc. appearing in the whole text and quickly delete the whole paragraph. General search and replacement can only replace or delete a single keyword. The fuzzy search keyword we use here can delete the whole paragraph in batch and can delete paragraphs with keywords at the same time, it also keeps other text paragraphs intact.
This article explains how to quickly realize this requirement, use regular expressions to find dynamic text or numbers, and delete the entire text with these in batches, so that the work efficiency can be directly improved to a higher level.
What circumstances to delete Doc, Docx documents do not need the entire text?
Toprotect privacy
when processing documents, they may contain sensitive information such as phone numbers and identity numbers. In order to protect personal privacy, an entire paragraph of text with numbers, such as some work reports or contracts, is usually deleted to remove sensitive information from them.
Simplify documentation
in the process of filing or sorting out documents, the telephone numbers or numbers filled in the previous meeting minutes are no longer needed. In order to make the documents more concise and intuitive, we will delete the entire paragraphs with these numbers for subsequent reference.
Remove Clause Description
there is a clause or additional explanation in the text of the Word document. When these texts are not needed, we can delete a whole paragraph of text according to the keywords appearing in the whole paragraph of the clause or explanation.
Remove Doc, Docx unnecessary whole text effect preview
before treatment:
after treatment:
According to the formula fuzzy find and delete Word in the unnecessary paragraph operation steps
1. Open 【 HeSoft Doc Batch Tool ], select [Word Tool]-[Find and Replace Paragraphs in Word Based on Keywords]].
2. Select a way to add files from [Add File] or [Import File from Folder], add Word that needs to delete the whole text, or drag it to the bottom to import it. After confirming that there is no problem with the file, click Next.
3. Enter the option interface, select [Use Formula to Fuzzy Find Text], and enter regular expression in the keyword list found below to fuzzy find out the number. The international format number format is [\ \d{1,3}\s *\(\d{3}\)\s *\d{3}-\d{4}]. If other contents are needed, enter the corresponding formula. After replacing the keyword list, leave it blank, do not enter any text, and finally click Next again.
4. Just wait a few seconds and click on the red path to open the file. All the entire text with numbers in Word have been successfully deleted.