ВМ
Size: a a a
ВМ
ВМ
AN
ВМ
NM
NM
L
L
is
L
L
p
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);
}
}
L
p
C
C
L
p
p
p