Filter List Online Tool
Overview
Filter a list of lines of text by a substring or a regular expression. The list is split into two lists: the lines that do not match the filter, and the filtered lines that do. Each entry in the list should be separated by a newline. Empty lines are ignored, and both lists keep the lines in their original order.
How to Use
1. Enter the list into the input box, one item per line.
2. Enter the text to filter by into the Filter field.
3. Choose whether the filter is matched as a substring or as a regular expression, and check Ignore case to match uppercase and lowercase letters alike.
4. Press the "Filter" button. The lines that do not match the filter are shown in the first output box, and the filtered lines that match it are shown in the second output box.
Match Types
Substring |
A line matches if it contains the filter text anywhere in it. For example, the filter
an matches "banana" and "orange" but not "apple". All characters, including
. and *, are matched literally. |
Regular expression |
A line matches if the JavaScript regular expression matches any part of it. Use ^
and $ to match the start and end of the line: ^a matches lines starting
with "a", \d+$ matches lines ending in a number, and ^(cat|dog)$
matches lines that are exactly "cat" or "dog". An invalid regular expression is reported below
the Filter field. |