regex 0.2.2

An implementation of regular expressions for Rust. This implementation uses finite automata and guarantees linear time matching on all inputs.
Documentation
1
2
3
4
5
6
7
8
9
extern crate regex;

use regex::Regex;

fn main() {
    let re = Regex::new("^(aba|a)c*(b|$)").unwrap();
    println!("{:?}", re.find("abaca"));
    println!("{:?}", re.captures("abaca"));
}