#![allow(dead_code)] #![allow(non_snake_case)] #![allow(non_upper_case_globals)] #[macro_use] mod utils; use regex::Regex; fn main() { let str:&'static str = "Four score and seven years ago..."; println!("Split 1: {}", list_to_string!(utils::regex_split(Regex::new(r" ").unwrap(), str))); println!("Split 2: {}", list_to_string!(utils::regex_split(Regex::new(r"[eo]").unwrap(), str))); println!("Split 3: {}", list_to_string!(utils::regex_split(Regex::new(r"\s").unwrap(), str))); println!("Split 4: {}", list_to_string!(utils::regex_split(Regex::new(r"\W").unwrap(), str))); }