Pulling only the lines that contain a word usually means a manual scan or a regular expression.
Line Filter keeps or removes lines based on whether they contain the text you type.
How to use Line Filter
- Paste the lines you want to filter into the input box.
- Type the text to match and optionally invert, and Line Filter keeps or drops the matching lines.
- Copy the filtered lines, or download them as a text file.
Use cases
- Keeping only the log lines that mention an error.
- Removing every line that contains a stop word.
- Extracting entries that include a keyword.
Good to know
Line Filter checks each line for the text you enter, case-insensitively, and either keeps the matching lines or, when inverted, removes them. Empty lines are dropped, and the rest of each kept line is left unchanged.
Frequently asked questions
Is the match case-sensitive?
No. The contains check ignores case, so a lowercase term still matches a capitalised line.
What does the invert option do?
Inverting keeps the lines that do not contain the text and removes the ones that do.
Does it match anywhere in the line?
Yes. A line is kept if the text appears anywhere within it, not only at the start.