Line Filter

Line Filter filters the lines of a text by a word or regular expression: keep or remove the matching lines. Useful for log files, lists and exports. Your text never leaves your device.

Result
—

0/0 matching lines

How it works

  1. 1Paste the lines into the left box.
  2. 2Type the word or regular expression to search for.
  3. 3Choose whether to keep or remove matching lines; turn on case sensitivity or regex if needed.
  4. 4Copy the result with "Copy".

Frequently asked questions

Do I have to write a regular expression?+

No, by default lines containing the text you typed match; regex is optional.

What happens with an invalid regular expression?+

The tool shows the error message and the result stays empty; the page keeps working.

Can I search for several words at once?+

Yes, turn on regex and separate the words with | (e.g. error|warn).

Embed on your site

Size
480 × 360px
<iframe
  src="https://toolsqube.com/en/text/line-filter/embed"
  width="480" height="360"
  style="border:0;border-radius:14px"
  title="Line Filter · ToolsQube"
  loading="lazy">
</iframe>

Want to go deeper on this topic: Text Editing Guide →

Command Palette

Search for a command to run…