1 mat!(match_flag_case, "(?-u)(?i)abc", "ABC", Some((0, 3))); 2 mat!(match_flag_weird_case, "(?-u)(?i)a(?-i)bc", "Abc", Some((0, 3))); 3 mat!(match_flag_weird_case_not, "(?-u)(?i)a(?-i)bc", "ABC", None); 4 mat!(match_flag_case_dotnl, "(?-u)(?is)a(?u:.)", "A\n", Some((0, 2))); 5 mat!( 6 match_flag_case_dotnl_toggle, 7 "(?-u)(?is)a(?u:.)(?-is)a(?u:.)", 8 "A\nab", 9 Some((0, 4)) 10 ); 11 mat!( 12 match_flag_case_dotnl_toggle_not, 13 "(?-u)(?is)a(?u:.)(?-is)a(?u:.)", 14 "A\na\n", 15 None 16 ); 17 mat!( 18 match_flag_case_dotnl_toggle_ok, 19 "(?-u)(?is)a(?u:.)(?-is:a(?u:.))?", 20 "A\na\n", 21 Some((0, 2)) 22 ); 23 mat!( 24 match_flag_multi, 25 r"(?-u)(?m)(?:^\d+$\n?)+", 26 "123\n456\n789", 27 Some((0, 11)) 28 ); 29 mat!(match_flag_ungreedy, "(?U)a+", "aa", Some((0, 1))); 30 mat!(match_flag_ungreedy_greedy, "(?U)a+?", "aa", Some((0, 2))); 31 mat!(match_flag_ungreedy_noop, "(?U)(?-U)a+", "aa", Some((0, 2))); 32