Filter words in a list

Filter a list by matching any substring, starting word, ending word, or regex pattern inside each line. Default is a Contains search on pattern `ap`. This is a line filter tuned for word-in-item matching - same op as Filter list lines. For stricter word boundaries, toggle Whole word; for complex patterns, switch Mode to Regex.

Input
Ready
Output
Live

Line filter with five match modes

Same engine as Filter list lines. Each line is tested against the Match pattern under the chosen Mode: Contains (substring), Equals (exact-line match), Starts with, Ends with, or Regex. By default the pattern is regex-escaped so `.+*` work as literals; turn Regex mode on to enable pattern syntax.

Invert flips the result: instead of keeping matching lines, it drops them. Useful for "show me everything *except* lines containing `@`" without rewriting the pattern.

Whole word wraps the pattern in `\b…\b` word boundaries - `cat` matches `the cat` but not `category`. Ignored in Regex mode (add boundaries yourself). Case sensitive (off by default) flips the `i` regex flag.

How to use filter words in a list

  1. 1Paste your list into the input panel
  2. 2Type the Match pattern in the Match field
  3. 3Pick Mode: Contains (default), Equals, Starts with, Ends with, or Regex
  4. 4Toggle Invert to drop matches instead of keeping them
  5. 5Toggle Whole word / Case sensitive as needed

Keyboard shortcuts

Drive ListShift without touching the mouse.

Shortcut Action
Ctrl ZUndo last input change
Ctrl Shift ZRedo
Ctrl Shift EnterToggle fullscreen focus on the editor
EscExit fullscreen
Ctrl KOpen the command palette to jump to any tool
Ctrl SSave current pipeline draft Plus
Ctrl PRun a saved pipeline Plus

What this filter actually does

Per-line substring / regex keep-or-drop with five match modes.

Five match modes

Contains (default, substring anywhere), Equals (whole-line exact match, no trim), Starts with (anchored at line start), Ends with (anchored at line end), Regex (full JavaScript regex syntax).

Invert toggle

Flips keep-vs-drop. With a pattern and Invert off, matching lines are kept. With Invert on, matching lines are dropped instead. Lets you reuse the same pattern for include or exclude filtering.

Whole word for precise matches

Adds `\b` word boundaries around the pattern. `cat` matches `the cat` (space boundaries) but not `category` or `concatenate`. Only applies to non-regex modes; in Regex mode, add `\b` yourself.

Case sensitivity toggle

Off by default - `Apple`, `apple`, `APPLE` all match `apple`. On distinguishes them. Applies to all five modes.

Same op as Filter list lines

This page is the word-in-list-framing alias of Filter list lines. Same underlying engine, same options, same behavior - two SEO targets for the same tool.

Worked example

Default Contains mode, pattern `ap`. Two items contain the substring.

Input
apple
banana
cherry
apricot
blueberry
Output
apple
apricot

Settings reference

How each option shapes the output using the sample above (Match pattern `ap`).

Setting What it does Effect on the sample
Mode: Contains (default), Pattern: `ap` Keeps lines containing the substring `ap` `apple`, `apricot`
Mode: Starts with, Pattern: `ap` Keeps lines starting with `ap` `apple`, `apricot` (same in this case)
Mode: Equals, Pattern: `apple` Keeps only lines exactly `apple` `apple`
Mode: Regex, Pattern: `^a.+e$` Keeps lines starting with `a` and ending with `e` `apple`
Invert: on, Pattern: `ap` Drops lines containing `ap` `banana`, `cherry`, `blueberry`

FAQ

What is the difference between Contains and Whole word?
Contains `cat` matches `category` (substring anywhere). Whole word on + Contains + `cat` adds `\b` boundaries - matches `the cat` but not `category`. Use Whole word when the pattern should be its own token.
How do I drop lines that match a pattern?
Set the pattern, then toggle Invert on. Any mode works - Contains, Starts with, Regex, etc. Invert flips keep to drop without rewriting the pattern.
Does Equals trim the line before comparing?
No - exact match, including any leading or trailing whitespace. If your data has inconsistent whitespace, chain trim before this tool.
What happens with invalid regex?
The status bar reports the error and the output is empty (not corrupted input). Fix the pattern and the output recomputes live.
How is this different from Filter list lines?
Same op, same options, same behavior. This page is framed around word-in-list matching for SEO; Filter list lines is the general-purpose sibling. Pick whichever matches your search intent.