use lua_patterns::LuaPattern; let text = "He"; let mut m = LuaPattern::new("(.)(.)"); if m.matches(text) { let mut iter = m.match_captures(text); for i in m.match_captures(text) { println!("{}",i); } }