Hongmu Notes

❎ Keyword batch deletion

According to the word list, delete the entire paragraph of the hit keywords in the text.

Keyword batch deletion

Instructions for use

  • Paste the text and keywords separately, and click "Process" to delete the hit content.
  • Keywords are matched according to regular rules. If they contain symbols such as . * ( ), they must be escaped first.
  • It is recommended to arrange the word list according to "longest first and then shortest" to avoid long words being chopped into pieces.

Vocabulary processing order

When there is an inclusion relationship in the word list (such as "仙" and "仙剑"), the deletion order will directly affect the results.

📌 Why is it recommended to delete long words first?

If you delete "仙剑" first, the whole word will be cleared; if you delete "仙" next, there will be no residue left. If "Immortal" is deleted first, "Immortal Sword" will be cut into "Sword" and will no longer match, and the remaining content will not be deleted.

🔒 Dealing with location and privacy

The deletion is completed locally in the browser. The text and keyword list are not uploaded to the server or written to local storage. They will be cleared when the page is refreshed. The result is only a copy of the main text, and the original text and word list are not affected. You can repeatedly adjust the list before processing.

📌 delete rule

Read the keyword list line by line, skip empty lines, and then perform "global replacement with empty" on the text: every hit keyword is deleted, and the characters before and after it are directly connected. Replacements are accumulated in order, so after the previous keyword is deleted, the text will become shorter, and the next keyword will continue to match on the shortened text; regular expressions are used for matching, and special symbols have special meanings.

All keywords and tutorials 12

❓ FAQ

Can it be sorted automatically?
This page is not sorted. You need to sort the word list from most to least length first.
How to fix the wrong order?
Just rearrange the word list from longest to shortest and process it again.
Vocabulary sorting suggestions
Arrange them according to the number of characters from most to least and then delete them most thoroughly.