#regex #grep #egrep #search #pattern

grep-searcher

Fast line oriented regex searching as a library

3 unstable releases

0.1.1 Sep 7, 2018
0.1.0 Aug 20, 2018
0.0.1 Aug 8, 2018

#86 in Text processing

Download history 429/week @ 2018-10-11 592/week @ 2018-10-18 522/week @ 2018-10-25 520/week @ 2018-11-01 529/week @ 2018-11-08 592/week @ 2018-11-15 484/week @ 2018-11-22 475/week @ 2018-11-29 554/week @ 2018-12-06 570/week @ 2018-12-13 803/week @ 2018-12-20 425/week @ 2018-12-27 440/week @ 2019-01-03

37 downloads per month
Used in 4 crates (3 directly)

Unlicense/MIT

267KB
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
~140K SLoC