#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

#63 in Text processing

Download history 643/week @ 2019-10-07 629/week @ 2019-10-14 610/week @ 2019-10-21 642/week @ 2019-10-28 636/week @ 2019-11-04 553/week @ 2019-11-11 558/week @ 2019-11-18 622/week @ 2019-11-25 582/week @ 2019-12-02 748/week @ 2019-12-09 483/week @ 2019-12-16 429/week @ 2019-12-23 467/week @ 2019-12-30 583/week @ 2020-01-06 701/week @ 2020-01-13

2,566 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