Remove Lines Containing/Not Containing

Remove Lines Containing/Not Containing

remove-lines-containing-not-containing

Line Filter

Remove lines based on whether they contain or don't contain specific text.

Original: 0 lines
Remaining: 0 lines
Removed: 0 lines

ℹ️ Line Filtering Guide

Filtering Examples:

  • Remove containing "error": Keeps only lines without "error"
  • Remove NOT containing "http": Keeps only lines with URLs
  • Regex "^[A-Z]": Keeps only lines starting with capital letter
Input Filter Output
Apple
Banana
apple
Orange
Remove containing "apple" (ignore case) Banana
Orange
Error: failed
Success
Warning: minor
Success
Remove NOT containing "Success" Success
Success
123 Main St
john@email.com
555-1234
Regex: .+@.+\. john@email.com

Note: Blank lines are included in counts but can be optionally removed. Regex uses JavaScript syntax.