#regex #grep #egrep #search #pattern

grep-searcher

Fast line oriented regex searching as a library

5 releases

0.1.3 Feb 10, 2019
0.1.2 Feb 9, 2019
0.1.1 Sep 7, 2018
0.1.0 Aug 20, 2018
0.0.1 Aug 8, 2018

#29 in Text processing

Download history 549/week @ 2018-11-29 558/week @ 2018-12-06 833/week @ 2018-12-13 382/week @ 2018-12-20 478/week @ 2018-12-27 632/week @ 2019-01-03 561/week @ 2019-01-10 569/week @ 2019-01-17 479/week @ 2019-01-24 623/week @ 2019-01-31 683/week @ 2019-02-07 547/week @ 2019-02-14 460/week @ 2019-02-21 583/week @ 2019-02-28 590/week @ 2019-03-07

2,401 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
~137K SLoC