Rust bindings for the Oniguruma regular expressions library.

Links

Documentation

How to install

In Cargo.toml:

toml [dependencies] oniguruma = "0.1"

In src/main.rs:

rust extern crate oniguruma;

Example of usage

```rust 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) } } ```