Hongmu Notes

🧹 Delete bracket content

Delete the four types of brackets and their contents, and retain the rest of the original text.

Delete bracket content

Instructions for use

  • After pasting the text, click "Start Processing" and the result will appear in the read-only box below.
  • A space will be left in the deleted position to avoid the adhesion of the preceding and following text.
  • The angle brackets will be deleted together with the label. Please back up the code before processing it.

Remove parentheses

The brackets in the list are often used to put supplementary explanations. They are not needed when making a formal manuscript. It is easiest to delete them all at once.

📌 Will the content in brackets be retained?

No. The brackets and the content in the brackets are replaced with a space; if you only want to delete the brackets and retain the words inside, please use search and replace to replace the two brackets with empty spaces.

📌 delete rule

The tool uses a regular rule to match four types of bracket pairs at the same time: Chinese parentheses, English parentheses, Chinese bookmarks, and angle brackets; each hit (including all characters within the brackets) will be replaced with a space. Therefore, it is a method of "matching paired brackets first, and then replacing them as a whole". Contents with unpaired brackets or across lines will not be processed, and the order of the original text and other characters remain completely unchanged.

🧭 Common uses

It is very easy to remove the supplementary descriptions in parentheses when organizing lists copied from documents or web pages, clean up aliases in "entries (aliases)" in batches, restore web page tagged fragments to plain text, and process citation titles with book titles. Since the change is to replace it with a space on the spot, use the blank line and space cleaning tool to go through it again after processing, and the result will be cleaner.

All keywords and tutorials 12

❓ FAQ

What happens if the brackets are not paired?
will not be processed. Only matching content will be deleted.
Can I delete across lines?
No. By default, only bracket pairs within the same line are processed.
Typical scenarios for deleting bracketed content
Clean up entry aliases, remove supplementary explanations in documents, and organize list text.