← All tools
// TEXT

Text Grep Online

Filter text lines by a pattern - like grep in your browser. Supports regex.

Text Grep logo
by
CHUNKY
MUNSTER
Pattern:
TEXT INPUT0 LINES
MATCHING LINES0 LINES

About Text Grep

Works like the Unix grep command - filter lines of text by a pattern. Supports plain text and full JavaScript regular expressions. Use "Invert" to exclude matching lines instead. Runs entirely in your browser.

Filtering Logs with the Online Grep Tool

  1. Paste your multi-line content into the text input area.
  2. Enter the regex search pattern or literal text you want to match.
  3. Choose whether to keep or exclude lines based on the pattern matcher logic.
  4. Click Apply Filter to see the results instantly in the output window.

Text Grep provides a powerful interface to filter text lines by pattern without needing a command line. This free online line filter uses standard JavaScript regular expressions to provide a fast and secure regex search environment for developers and system administrators. Whether you are performing a simple grep online search for keywords or using complex rules to exclude lines from a log file, this utility processes all data locally in your browser for absolute privacy and speed.

Technical Pattern Matcher and Log Filter

This text search utility is optimized for handling large datasets and complex filtering tasks. The tool's log filter capabilities allow you to quickly narrow down thousands of entries by specific criteria, while the option to show line numbers helps you reference the original source with ease. By utilizing this pattern matcher as a comprehensive text grep service, you can isolate critical information from data exports or technical reports, making it an essential text search utility for any workflow involving large blocks of text.

Frequently Asked Questions

What regex flavour does it support?

JavaScript RegExp - close to PCRE. Lookbehind, named groups and Unicode property escapes work in modern browsers. Possessive quantifiers and recursive patterns are not supported.

How do I invert the match (show non-matching lines)?

Switch to 'Exclude matching' mode - equivalent to grep -v. The output will contain every line that did not match your pattern.

Can I use a multi-line regex?

Patterns are applied per line, so ^ and $ anchor to the start and end of each line by default. To match across lines, you'd need to disable the line-split - currently this tool always splits on newlines.

Are matches case-insensitive by default?

No - matching is case-sensitive unless you toggle the 'ignore case' option, which adds the i regex flag.

Streamline your data analysis and isolate exactly what you need with this efficient Text Grep tool.