Hongmu Notes

✅ Text line preservation filter

Paste the text lines and fill in a keyword, and only keep the lines containing the keyword.

Text line preservation filter

Instructions for use

  • Fill in the keywords first, then paste the text lines, the results will be updated instantly
  • Only keep the lines containing keywords, and delete the rest of the lines.
  • All is done locally in the browser, and the input content will not be uploaded.

What can this tool do?

  • Select the lines containing keywords line by line, and delete the remaining lines.
  • When the input and keywords change, the results are updated immediately, no need to click the button repeatedly.
  • The output maintains the original line order, one line per line, and gives the number of hits.
  • The entire process is processed locally in the browser, and the text is not uploaded.

Actual measurement effect

Enter text lineKeywordsoutputNumber of items
abcd
efgh
12345
123abc
abcabcd
123abc
2
2024-01 error
2024-01 info
2024-02 error
error2024-01 error
2024-02 error
2

It can be seen that only the lines containing keywords will be retained, and the rest of the entire lines will be removed, and the line order will be consistent with the original text.

Usage tips

  • The input box has one line per line, and the judgment is based on line units.
  • English keywords are case-sensitive, ERROR and error are not the same word
  • The number of hits will be displayed in the status line for easy verification with the original text.

All keywords and tutorials 12

❓ FAQ

How is it sifted?
Line-by-line judgment: Only lines "containing keywords" are retained, lines without keywords are removed, and the output maintains the original line order.
Can I fill in multiple keywords?
Fill in one keyword at a time; if multiple sets of keywords are needed, filter them separately and then merge the results. This page does not perform a multi-word "OR" operation.
Is it case sensitive?
Distinguish. English matches as they are. Users who are used to grep should note that the capitalization should be consistent with the original text.
Will the text be uploaded?
No. Filtering is all done locally in the browser, and the text is not uploaded to the server or written to local storage.