#regex #grep #search #pattern #line

grep-regex

Use Rust’s regex library with the ‘grep’ crate

7 releases

0.1.5 Aug 6, 2019
0.1.4 Aug 1, 2019
0.1.3 Apr 15, 2019
0.1.2 Feb 16, 2019
0.0.1 Aug 8, 2018

#56 in Text processing

Download history 722/week @ 2019-07-27 933/week @ 2019-08-03 807/week @ 2019-08-10 676/week @ 2019-08-17 691/week @ 2019-08-24 653/week @ 2019-08-31 623/week @ 2019-09-07 632/week @ 2019-09-14 722/week @ 2019-09-21 579/week @ 2019-09-28 565/week @ 2019-10-05 673/week @ 2019-10-12 607/week @ 2019-10-19 599/week @ 2019-10-26 676/week @ 2019-11-02

2,503 downloads per month
Used in 6 crates (5 directly)

Unlicense/MIT

155KB
3K SLoC

grep-regex

The grep-regex crate provides an implementation of the Matcher trait from the grep-matcher crate. This implementation permits Rust's regex engine to be used in the grep crate for fast line oriented searching.

Linux build status Windows build status

Dual-licensed under MIT or the UNLICENSE.

Documentation

https://docs.rs/grep-regex

NOTE: You probably don't want to use this crate directly. Instead, you should prefer the facade defined in the grep crate.

Usage

Add this to your Cargo.toml:

[dependencies]
grep-regex = "0.1"

and this to your crate root:

extern crate grep_regex;

Dependencies

~2MB
~53K SLoC