mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-30 14:17:36 -10:00
10 lines
191 B
Rust
10 lines
191 B
Rust
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"));
|
|
}
|