#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

#57 in Text processing

Download history 1001/week @ 2019-08-02 916/week @ 2019-08-09 839/week @ 2019-08-16 923/week @ 2019-08-23 836/week @ 2019-08-30 827/week @ 2019-09-06 796/week @ 2019-09-13 844/week @ 2019-09-20 798/week @ 2019-09-27 797/week @ 2019-10-04 868/week @ 2019-10-11 1108/week @ 2019-10-18 1881/week @ 2019-10-25 1148/week @ 2019-11-01 1131/week @ 2019-11-08

3,352 downloads per month
Used in 8 crates (5 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

~4MB
~137K SLoC