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.

HTML tag removal

Text copied from a web page often contains tags, which must be removed before the plain text becomes usable; this page follows the same rule.

📌 What should you pay attention to when using this page to tag?

The angle brackets will delete the entire content between a pair of angle brackets, so the tags can be removed. However, if angle brackets are used in the text to express "less than" or "greater than", that part will also be deleted by mistake; please confirm that there is no such writing in the text before processing.

🔒 Dealing with location and privacy

Deletion is completed locally in the browser, without Internet access, uploading, or writing to local storage. It will be cleared after refreshing. It is recommended to compare the results side by side with the original text before use to avoid accidentally deleting the bracketed content in the text.

📌 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.

All keywords and tutorials 12

❓ FAQ

Can you change the label to a newline?
No. Only one space will be left in the deleted position.
Can I keep the image address?
No. The attributes within the tag will be deleted together.
Alternatives to tagging
When it is necessary to retain label attributes, it is recommended to use grouped replacement expressions to extract by attributes.