2021-11-18 07:08:48 -06:00
|
|
|
#![warn(clippy::disallowed_methods)]
|
2020-09-24 15:32:03 -05:00
|
|
|
|
|
|
|
extern crate regex;
|
|
|
|
use regex::Regex;
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let re = Regex::new(r"ab.*c").unwrap();
|
|
|
|
re.is_match("abc");
|
|
|
|
|
2021-01-30 00:18:56 -06:00
|
|
|
let a = vec![1, 2, 3, 4];
|
2020-09-24 15:32:03 -05:00
|
|
|
a.iter().sum::<i32>();
|
|
|
|
}
|