Rust bindings for the Oniguruma regex library.
This crate is still under development at the moment.
```rust 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) } } ```
The contents of this repository are distributed under the MIT license. See LICENSE for more details.