Filter Lines (Include / Exclude Keyword)

Filter Lines (Include / Exclude Keyword)

Local Processing

Keep or remove lines that contain a specific substring or keyword.

How It Works & Processing Standards

Keep or remove lines that contain a specific substring or keyword.

Tool processing runs in your browser. If you create a calculator or conversion share link, its values are included in the URL. See the privacy policy for account, analytics and advertising data.

Current Limits

  • Maximum input length: 2,000,000 characters

Choose include/exclude filter, extract regex matches, non-matching lines or grep style under "Task" to pick out the lines you need from long logs.

What You Can Do

Include/exclude filter
Keeps only lines containing a word, or drops them.
Extract regex matches
Pulls out only the matching parts, one per line.
Non-matching lines
Keeps only lines that do not match the regex.
grep style
Finds matching lines the way grep does.

How to Use Filter Lines (Include / Exclude Keyword)

  1. 1
    Choose a taskFilter by a word or by a regex.
  2. 2
    Enter the conditionThe word, or the regex and flags.
  3. 3
    CopyCopy the filtered lines.

Examples

Keep ERROR lines
Input: ERROR 디스크 부족 / INFO 시작 / ERROR 연결 실패
Result: ERROR 디스크 부족 / ERROR 연결 실패
Extract order numbers (regex)
Input: 주문 A123 완료 / 주문 B456 취소 / pattern [A-Z]\d+
Result: A123 / B456

Common Use Cases

  • Seeing only error lines in a server log
  • Picking items with a keyword from a long list
  • Extracting code or number patterns from text

Frequently Asked Questions (FAQ)

Can I ignore case?

The include/exclude and grep tasks have an ignore-case option; for regex use the i flag.

Can I see line numbers?

Use the Line Extractor for ranges, or number the lines first with the Line Prefix tool, then filter.

Have feedback or ideas for this tool? Suggest & Inquire →