[go: up one dir, main page]

regex 0.1.71

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
extern crate regex;

use regex::Regex;

fn main() {
    let re = Regex::new(r"[a-z&&[x]]").unwrap();
    println!("{}", re.is_match("bye"));
}