#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

#60 in Text processing

Download history 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 932/week @ 2019-11-15 839/week @ 2019-11-22 796/week @ 2019-11-29 864/week @ 2019-12-06 1136/week @ 2019-12-13 491/week @ 2019-12-20 608/week @ 2019-12-27 813/week @ 2020-01-03 829/week @ 2020-01-10

4,236 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
~138K SLoC