#regex #grep #egrep #search #pattern

grep-searcher

Fast line oriented regex searching as a library

9 releases

Uses old Rust 2015

0.1.7 Mar 16, 2020
0.1.6 Aug 6, 2019
0.1.5 Jun 26, 2019
0.1.4 Apr 15, 2019
0.0.1 Aug 8, 2018

#170 in Text processing

Download history 2050/week @ 2020-04-19 1943/week @ 2020-04-26 2732/week @ 2020-05-03 4224/week @ 2020-05-10 5112/week @ 2020-05-17 2383/week @ 2020-05-24 3381/week @ 2020-05-31 2805/week @ 2020-06-07 2762/week @ 2020-06-14 4890/week @ 2020-06-21 2623/week @ 2020-06-28 1254/week @ 2020-07-05 1997/week @ 2020-07-12 1339/week @ 2020-07-19 2341/week @ 2020-07-26 2998/week @ 2020-08-02

11,153 downloads per month
Used in 13 crates (6 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