#regex #grep #egrep #search #pattern

grep-searcher

Fast line oriented regex searching as a library

8 releases

0.1.6 Aug 6, 2019
0.1.5 Jun 26, 2019
0.1.4 Apr 15, 2019
0.1.3 Feb 10, 2019
0.0.1 Aug 8, 2018

#46 in Text processing

Download history 742/week @ 2019-04-23 672/week @ 2019-04-30 595/week @ 2019-05-07 567/week @ 2019-05-14 581/week @ 2019-05-21 637/week @ 2019-05-28 854/week @ 2019-06-04 833/week @ 2019-06-11 720/week @ 2019-06-18 924/week @ 2019-06-25 1307/week @ 2019-07-02 961/week @ 2019-07-09 823/week @ 2019-07-16 704/week @ 2019-07-23 859/week @ 2019-07-30

3,352 downloads per month
Used in 6 crates (4 directly)

Unlicense/MIT

270KB
5K SLoC

grep-searcher

A high level library for executing fast line oriented searches. This handles things like reporting contextual lines, counting lines, inverting a search, detecting binary data, automatic UTF-16 transcoding and deciding whether or not to use memory maps.

Linux build status Windows build status

Dual-licensed under MIT or the UNLICENSE.

Documentation

https://docs.rs/grep-searcher

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-searcher = "0.1"

and this to your crate root:

extern crate grep_searcher;

Dependencies

~4.5MB
~141K SLoC