example/
example.rs

1use regexpr::Regex;
2
3fn main() {
4    /* let rule = "^(abc|cba)$"; */
5    /* let r = Regex::compile(rule).unwrap(); */
6
7    /* println!("{rule} : {r}"); */
8
9    /* for st in ["abc", "cba", ".abc", ".cba", ".cga"] { */
10    /*     println!("{st} => {}", */
11    /*         r.test(st)); */
12    /* } */
13
14    let regex = Regex::compile(".*b").unwrap();
15    for m in regex.find_matches("aaaaaabaaaaaab") {
16        println!("{m:#?}");
17    }
18}