onig 0.3.1

Rust-Onig is a set of rust bindings for the oniguruma regular expression library.
docs.rs failed to build onig-0.3.1
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: onig-6.4.0

Rust Onig

Rust bindings for the Oniguruma regex library.

This crate is still under development at the moment.

Example of usage

use onig::Regex;

let regex = Regex::new("e(l+)").unwrap();
for (i, pos) in regex.captures("hello").unwrap().iter_pos().enumerate() {
    match pos {
         Some((beg, end)) =>
             println!("Group {} captured in position {}:{}", i, beg, end),
         None =>
             println!("Group {} is not captured", i)
    }
}

Rust Onig is Open Source

The contents of this repository are distributed under the MIT license. See LICENSE for more details.