ВМ
Size: a a a
ВМ
ВМ
ВМ
ВМ
p
NM
AN
ВМ
extern crate regex;
use regex::Regex;
fn main() {
let regex = Regex::new(r"(?m)((?:\d,)*\d)").unwrap();
let string = "1,1,1 1,1,1 1,1,1";
// result will be an iterator over tuples containing the start and end indices for each match in the string
let result = regex.find_iter(string);
for mat in result {
println!("{:?}", mat);
}
}
ВМ
ВМ
ВМ
ВМ
ВМ
ВМ
ВМ
((?:\d+,)*\d+\s*)
ВМ
ВМ
ВМ
((?:\d+,)*\d+)