let mut m = lua_patterns::LuaPattern::new("(%a+) one"); let text = " hello one two"; let v = m.captures(text); assert_eq!(v, &["hello one","hello"]);