Line filter

Keep or remove lines containing text, matching a pattern or meeting a length.

Processed on your device

Input

Open a local UTF-8 text file5 MiB maximum. The file opens in the text box above.Or drop a file here.

Options

Options

How to use this tool

  1. Choose a match mode, then enter its text or JavaScript regular expression when needed.
  2. Choose whether to keep matching or non-matching lines.
  3. Run the filter and copy the remaining lines.

Things to know

  • Regular expressions use JavaScript syntax. Cancel an expensive expression to stop its worker.
  • Each text input accepts up to 5 MiB. Output is limited to 25 MiB and combined text settings to 1 MiB.
  • Line-based modes accept up to 100,000 lines, including a trailing empty line.

You might also need

More in text & lists