oniguruma 0.2.0

Rust bindings for the Oniguruma regular expressions library.
docs.rs failed to build oniguruma-0.2.0
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: oniguruma-0.3.0

Rust bindings for the Oniguruma regular expressions library.

Links

Documentation

Oniguruma Syntax Reference

How to install

In Cargo.toml:

[dependencies]
oniguruma = "0.1"

In src/main.rs:

extern crate oniguruma;

Example of usage

use oniguruma::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)
    }
}