The search and replace function of TXT text documents can only replace or delete some specified text content. If we want to delete an entire line with specified text, we can only manually search and delete one by one, which is too slow. Here is a very simple method to delete an entire line containing specific text in batches with one click, and it can also process a lot of txt text at the same time, saving time and effort!
In our daily work, we often encounter situations where we need to delete an entire line or an entire paragraph of text in a document, such as deleting all lines with the word "remarks" or deleting all lines with "disclaimer" in the text.
In this case, the TXT text comes with a limited search and replace function, it can only find and delete specific keywords, but can not delete an entire line with these keywords. Therefore, we need a more simple and convenient method to operate, the following will teach you the specific operation method.
TXT text contains keywords in a whole line deleted after the effect preview
before treatment:
after treatment:
Batch delete TXT contains the specified text of a whole line of operating steps
1, open. HeSoft Doc Batch Tool select Text Tools → Find and replace complete lines in a text file based on keywords.
2. Add files or import files from folders to add all TXT documents.
3. Select the precise search text and fill in the specified text under the keyword list on the left. For example, if we want to delete all the entire lines with "Answer", then enter "Answer" here, and if the text box on the right is not filled in, it means delete.
4. After the processing is completed, click the save location to view. The entire line containing the specified text in all TXT documents has been deleted.
in addition to the above method, you can also use Word to batch delete paragraphs in the document, but the operation is more complicated. Because we need to convert txt text into Word document first, and then use wildcard to delete in batch. If there are more documents to be processed, it is a waste of time and inefficient.
The method described above is not only simple and efficient, but also error-free, because many people do not understand the use of wildcards, so it is easy to delete other content by mistake, but it takes more time to correct errors. If you use professional tools to operate, you can accurately delete specific rows in batches, and you can get started quickly, and Xiaobai can easily handle it!