mr-regex 0.1.0

Minimalist ASCII Regex-engine with 300 lines of Rust
Documentation
  • Coverage
  • 0%
    0 out of 6 items documented0 out of 4 items with examples
  • Size
  • Source code size: 39.91 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.58 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 10s Average build duration of successful builds.
  • all releases: 10s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • MnO2/mr-regex
    3 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • MnO2

mr-regex: Minimalist ASCII Regex-engine with 300 lines of Rust

Build Status

  • This library compiles regex to NFA and then runs a DFS to search for the match
  • It only supports ascii strings.
  • Less than 300 lines of safe Rust.

Examples

You can use a convience one line match function.

regex_match("(zz)+", "zz")

Or a more formal interface

let r = Regex::new("(zz)+".as_bytes()).unwrap();
r.is_match("zz".as_bytes())