Crate pcre2

source ·
Expand description

This crate provides a safe high level Rust binding to PCRE2.

The API of this crate attempts to correspond closely to the API of Rust’s regex crate. The API provided by this crate neither matches the full API of Rust’s regex crate nor does it expose the full functionality of PCRE2. Contributions are welcome to improve this.


  • PCRE2 regular expressions for matching on arbitrary bytes.



  • The kind of an error indicates the type of operation that was attempted that resulted in an error.


  • Escapes all regular expression meta characters in pattern.
  • Returns true if and only if PCRE2 believes that JIT is available.
  • Returns the version of PCRE2 being used.