Rust bindings for the [Oniguruma](https://github.com/kkos/oniguruma) regular expressions library. #### Links [Documentation](http://defuz.github.io/oniguruma/oniguruma/) [Oniguruma Syntax Reference](https://github.com/kkos/oniguruma/blob/master/doc/RE) #### 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) } } ```