#pcre #regex #jit #pcre2 #perl

pcre2

High level wrapper library for PCRE2

4 releases

✓ Uses Rust 2018 edition

0.2.1 Jun 9, 2019
0.2.0 Apr 14, 2019
0.1.1 Sep 8, 2018
0.1.0 Aug 18, 2018

#83 in Text processing

Download history 261/week @ 2019-02-02 249/week @ 2019-02-09 279/week @ 2019-02-16 310/week @ 2019-02-23 244/week @ 2019-03-02 311/week @ 2019-03-09 261/week @ 2019-03-16 274/week @ 2019-03-23 202/week @ 2019-03-30 336/week @ 2019-04-06 751/week @ 2019-04-13 405/week @ 2019-04-20 352/week @ 2019-04-27 328/week @ 2019-05-04 299/week @ 2019-05-11

1,420 downloads per month
Used in 3 crates (1 directly)

Unlicense/MIT

3.5MB
82K SLoC

C 77K SLoC // 0.1% comments Rust 3K SLoC // 0.2% comments Batch 1K SLoC // 0.0% comments Python 418 SLoC // 0.4% comments Shell 245 SLoC // 0.3% comments

pcre2

A high level Rust wrapper library for PCRE2.

Linux build status Windows build status

Dual-licensed under MIT or the UNLICENSE.

Documentation

https://docs.rs/pcre2

Usage

Add this to your Cargo.toml:

[dependencies]
pcre2 = "0.1"

and this to your crate root:

extern crate pcre2;

Notes

Currently, this is a fairly light layer around PCRE2 itself and does not even come close to covering all of its functionality. There are no specific plans in place to build out the wrapper further, but PRs for making more of PCRE2 available are welcome, although my bandwidth for maintenance is limited. If you're interested in sharing this maintenance burden, please reach out.

Dependencies