mgrep is a command line tool that allows users to search text files for lines matching a given regular expression. It is similar to the well-known Unix utility, grep.

As a natural extension to the single-line regular expressions, mgrep is also capable of searching for multiline patterns.

mgrep is not a grep replacement, but it is intended to be grep-compatible: implemented options and behavior should be the same as those of grep.

mgrep is written in C++ using the Boost.Regex library.

A configure/make system is provided for Linux, but its source code should compile on all platforms that have the std and Boost.Regex libraries installed.

Project Samples

Project Activity

See All Activity >

Follow mgrep - A Multiline grep Implementation

mgrep - A Multiline grep Implementation Web Site

nel_h2
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of mgrep - A Multiline grep Implementation!

Additional Project Details

Intended Audience

Developers, Engineering, Information Technology, Science/Research, Testers

User Interface

Command-line

Programming Language

C++

Related Categories

C++ Command Line Tools, C++ Grep Tool

Registered

2012-08-01