Luce packages
LuceLuce BaseLuciaOS

dymokomi/luce-regex

Source of release 0.6.1

0.6.1 / src / regex / es_table_extra.lucb

#==============================================================================================
#
#   es_table_extra - More expected compile and exec results
#
#   DESCRIPTION:
#       Generated from upstream libregexp (C, compared locally, not kept in this repo), do not edit:
#       linked with QuickJS libregexp.c, libunicode.c and cutils.c (2026-06-04). The rows
#       have the layout of es_table_compile and es_table_exec1.
#
#==============================================================================================

let es_extra_compile_cases: CompileCase[97] = [
    CompileCase("(?ii:a)", 0, 0, "err=duplicate modifier: 'i'"),
    CompileCase("(?i-i:a)", 0, 0, "err=invalid modifiers"),
    CompileCase("(?-:a)", 0, 0, "err=invalid modifiers"),
    CompileCase("(?:a)", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("(?i)", 0, 0, "err=expecting ':'"),
    CompileCase("(?i", 0, 0, "err=expecting ':'"),
    CompileCase("(?im-s:a)", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("(?x:a)", 0, 0, "err=invalid group"),
    CompileCase("(?<a>a)(?<a>b)", 0, 0, "err=duplicate group name"),
    CompileCase("(?<a>a)|(?<a>b)", 0, 0, "ok cc=3 flags=0x80 names=<a>,<a>"),
    CompileCase("((?<a>a)|b)(?<a>c)", 0, 0, "ok cc=4 flags=0x80 names=<>,<a>,<a>"),
    CompileCase("(?<a>(?<a>b)|c)", 0, 0, "err=duplicate group name"),
    CompileCase("\\k<b>(?<a>a)", 0, 0, "err=group name not defined"),
    CompileCase("\\k<b>", 16, 0, "err=group name not defined"),
    CompileCase("\\k<b", 16, 0, "err=invalid group name"),
    CompileCase("\\k", 16, 0, "err=expecting group name"),
    CompileCase("(?<=a)*", 0, 0, "err=nothing to repeat"),
    CompileCase("(?<!a)+", 0, 0, "err=nothing to repeat"),
    CompileCase("(?=a)*", 16, 0, "err=nothing to repeat"),
    CompileCase("[b-a]", 0, 0, "err=invalid class range"),
    CompileCase("[\\d-a]", 16, 0, "err=invalid class range"),
    CompileCase("[a-\\d]", 16, 0, "err=invalid class range"),
    CompileCase("\\p{Foo}", 16, 0, "err=unknown unicode property name"),
    CompileCase("\\p{Script=Foo}", 16, 0, "err=unknown unicode script"),
    CompileCase("\\p{gc=Foo}", 16, 0, "err=unknown unicode general category"),
    CompileCase("\\p{L", 16, 0, "err=expecting '}'"),
    CompileCase("\\p", 16, 0, "err=expecting '{' after \\p"),
    CompileCase("\\pL", 16, 0, "err=expecting '{' after \\p"),
    CompileCase("\\p{Lu=x}", 16, 0, "err=unknown unicode property name"),
    CompileCase("\\p{RGI_Emoji}", 16, 0, "err=unknown unicode property name"),
    CompileCase("\\P{RGI_Emoji}", 256, 0, "err=unknown unicode property name"),
    CompileCase("[^\\p{RGI_Emoji}]", 256, 0, "err=negated character class with strings in regular expression debu"),
    CompileCase("[\\q{a}]", 16, 0, "err=invalid escape sequence in regular expression"),
    CompileCase("\\q{a}", 256, 0, "err=invalid escape sequence in regular expression"),
    CompileCase("[\\q{a]", 256, 0, "err=invalid character in class in regular expression"),
    CompileCase("[\\qa]", 256, 0, "err=expecting '{' after \\q"),
    CompileCase("[a&&&b]", 256, 0, "err=invalid class set operation in regular expression"),
    CompileCase("[a&&b--c]", 256, 0, "err=invalid operation in regular expression"),
    CompileCase("[a--b&&c]", 256, 0, "err=invalid operation in regular expression"),
    CompileCase("[a-]", 256, 0, "err=invalid character in class in regular expression"),
    CompileCase("[(]", 256, 0, "err=invalid character in class in regular expression"),
    CompileCase("[a!!b]", 256, 0, "err=invalid class set operation in regular expression"),
    CompileCase("[[a]", 256, 0, "err=unexpected end"),
    CompileCase("[a]]", 256, 0, "err=syntax error"),
    CompileCase("[^\\q{ab}]", 256, 0, "err=negated character class with strings in regular expression debu"),
    CompileCase("[^[\\q{ab}]]", 256, 0, "err=negated character class with strings in regular expression debu"),
    CompileCase("\\c", 16, 0, "err=invalid escape sequence in regular expression"),
    CompileCase("\\c1", 16, 0, "err=invalid escape sequence in regular expression"),
    CompileCase("[\\c1]", 16, 0, "err=invalid escape sequence in regular expression"),
    CompileCase("\\-", 16, 0, "err=invalid escape sequence in regular expression"),
    CompileCase("\\a", 16, 0, "err=invalid escape sequence in regular expression"),
    CompileCase("\\1", 16, 0, "err=back reference out of range in regular expression"),
    CompileCase("(a)\\2", 16, 0, "err=back reference out of range in regular expression"),
    CompileCase("\\00", 16, 0, "err=invalid decimal escape in regular expression"),
    CompileCase("\\08", 16, 0, "err=invalid decimal escape in regular expression"),
    CompileCase("a{", 16, 0, "err=invalid repetition count"),
    CompileCase("a{1", 16, 0, "err=expecting '}'"),
    CompileCase("a{1,", 16, 0, "err=expecting '}'"),
    CompileCase("{", 16, 0, "err=syntax error"),
    CompileCase("}", 16, 0, "err=syntax error"),
    CompileCase("]", 16, 0, "err=syntax error"),
    CompileCase("\\u{110000}", 16, 0, "err=invalid escape sequence in regular expression"),
    CompileCase("\\u{}", 16, 0, "err=invalid escape sequence in regular expression"),
    CompileCase("\\x1", 16, 0, "err=invalid escape sequence in regular expression"),
    CompileCase("\\uD83D", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("(?<a", 0, 0, "err=invalid group name"),
    CompileCase("(?<1a>x)", 0, 0, "err=invalid group name"),
    CompileCase("(?<a-b>x)", 0, 0, "err=invalid group name"),
    CompileCase("(?<>x)", 0, 0, "err=invalid group name"),
    CompileCase("(?<\\u0061>x)\\k<a>", 0, 0, "ok cc=2 flags=0x80 names=<a>"),
    CompileCase("(?<\\x61>x)", 0, 0, "err=invalid group name"),
    CompileCase("(?", 0, 0, "err=invalid group"),
    CompileCase("(?a)", 0, 0, "err=invalid group"),
    CompileCase("a|*", 0, 0, "err=nothing to repeat"),
    CompileCase("(?<=a", 0, 0, "err=expecting ')'"),
    CompileCase("(?=a", 16, 0, "err=expecting ')'"),
    CompileCase("[", 0, 0, "err=unexpected end"),
    CompileCase("[\\", 0, 0, "err=unexpected end"),
    CompileCase("\\", 0, 0, "err=unexpected end"),
    CompileCase("\\", 16, 0, "err=unexpected end"),
    CompileCase("a{99999999999}", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("a{2,99999999999}", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((()))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))", 0, 0, "err=too many captures"),
    CompileCase("(((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((())))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))", 0, 0, "ok cc=255 flags=0x0"),
    CompileCase("(?:a{2,3})(?:a{2,3})(?:a{2,3})", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:a{2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}){2,3}", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:a*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*", 0, 0, "ok cc=1 flags=0x0"),
    CompileCase("(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:a)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*)*", 0, 0, "err=too many imbricated quantifiers"),
    CompileCase("(?<a>x)(?<b>y)z", 64, 0, "ok cc=3 flags=0xc0 names=<a>,<b>"),
    CompileCase("(?<\u{1d49c}>x)", 16, 0, "ok cc=2 flags=0x90 names=<\u{1d49c}>"),
    CompileCase("(?<\\u{1d49c}>x)", 0, 0, "ok cc=2 flags=0x80 names=<\u{1d49c}>"),
    CompileCase("\u{1f600}", 0, 0, "err=malformed unicode char"),
    CompileCase("\u{1f600}", 16, 0, "ok cc=1 flags=0x10"),
    CompileCase("[\u{1f600}]", 0, 0, "err=malformed unicode char"),
    CompileCase("a", 127, 0, "ok cc=1 flags=0x7f"),
    CompileCase("a", 256, 0, "ok cc=1 flags=0x100"),
    CompileCase("a", 272, 0, "ok cc=1 flags=0x110"),
]

let es_extra_exec_cases: ExecCase[376] = [
    ExecCase("(?<=(\\w)(\\w))c", 0, 0, "abc", 0, 0, "1 2,3 0,1 1,2"),
    ExecCase("(?<=(\\w)(\\w))c", 0, 0, "abc", 1, 0, "1 2,3 0,1 1,2"),
    ExecCase("(?<=(a|ab))c", 0, 0, "abc", 0, 0, "1 2,3 0,2"),
    ExecCase("(?<=(a|ab))c", 0, 0, "abc", 1, 0, "1 2,3 0,2"),
    ExecCase("(?<=(a+?))b", 0, 0, "aaab", 0, 0, "1 3,4 2,3"),
    ExecCase("(?<=(a+?))b", 0, 0, "aaab", 1, 0, "1 3,4 2,3"),
    ExecCase("(?<=a(?=b)b)c", 0, 0, "abc", 0, 0, "1 2,3"),
    ExecCase("(?<=a(?=b)b)c", 0, 0, "abc", 1, 0, "1 2,3"),
    ExecCase("(?<=(?<!x)a)b", 0, 0, "ab", 0, 0, "1 1,2"),
    ExecCase("(?<=(?<!x)a)b", 0, 0, "ab", 1, 0, "1 1,2"),
    ExecCase("(?<=(?<!x)a)b", 0, 0, "xab", 0, 0, "0"),
    ExecCase("(?<=(?<!x)a)b", 0, 0, "xab", 1, 0, "0"),
    ExecCase("(?<=\\1(a))b", 0, 0, "aab", 0, 0, "1 2,3 1,2"),
    ExecCase("(?<=\\1(a))b", 0, 0, "aab", 1, 0, "1 2,3 1,2"),
    ExecCase("(?<=(a)\\1)b", 0, 0, "aab", 0, 0, "1 2,3 1,2"),
    ExecCase("(?<=(a)\\1)b", 0, 0, "aab", 1, 0, "1 2,3 1,2"),
    ExecCase("(?<=a{2,3})b", 0, 0, "aaab", 0, 0, "1 3,4"),
    ExecCase("(?<=a{2,3})b", 0, 0, "aaab", 1, 0, "1 3,4"),
    ExecCase("(?<=a{2,3})b", 0, 0, "ab", 0, 0, "0"),
    ExecCase("(?<=a{2,3})b", 0, 0, "ab", 1, 0, "0"),
    ExecCase("(?<=^a*)b", 0, 0, "aaab", 0, 0, "1 3,4"),
    ExecCase("(?<=^a*)b", 0, 0, "aaab", 1, 0, "1 3,4"),
    ExecCase("(?<=^a*)b", 0, 0, "xab", 0, 0, "0"),
    ExecCase("(?<=^a*)b", 0, 0, "xab", 1, 0, "0"),
    ExecCase("(?<=\\b\\w+)!", 0, 0, "hey!", 0, 0, "1 3,4"),
    ExecCase("(?<=\\b\\w+)!", 0, 0, "hey!", 1, 0, "1 3,4"),
    ExecCase("(?<=(?:ab)+)c", 0, 0, "ababc", 0, 0, "1 4,5"),
    ExecCase("(?<=(?:ab)+)c", 0, 0, "ababc", 1, 0, "1 4,5"),
    ExecCase("(?<=[\\u{1F600}-\\u{1F64F}]+)x", 16, 0, "%d83d%de00%d83d%de01x", 1, 0, "1 4,5"),
    ExecCase("(?<=\\uD83D)x", 0, 0, "%d83dx", 1, 0, "1 1,2"),
    ExecCase("(?<=\\uD83D)x", 0, 0, "%d83d%de00x", 1, 0, "0"),
    ExecCase("(?<=.)x", 0, 0, "%d83d%de00x", 1, 0, "1 2,3"),
    ExecCase("(?<=(.))x", 16, 0, "%d83d%de00x", 1, 0, "1 2,3 0,2"),
    ExecCase("(?<=\\p{L})\\d", 16, 0, "a1", 0, 0, "1 1,2"),
    ExecCase("(?<=\\p{L})\\d", 16, 0, "a1", 1, 0, "1 1,2"),
    ExecCase("(?<=\\p{L})\\d", 16, 0, "11", 0, 0, "0"),
    ExecCase("(?<=\\p{L})\\d", 16, 0, "11", 1, 0, "0"),
    ExecCase("(?<=ab?)c", 0, 0, "ac", 0, 0, "1 1,2"),
    ExecCase("(?<=ab?)c", 0, 0, "ac", 1, 0, "1 1,2"),
    ExecCase("(?<=ab?)c", 0, 0, "abc", 0, 0, "1 2,3"),
    ExecCase("(?<=ab?)c", 0, 0, "abc", 1, 0, "1 2,3"),
    ExecCase("(?<!\\d)\\d{2}(?!\\d)", 0, 0, "1234 56 789", 0, 0, "1 5,7"),
    ExecCase("(?<!\\d)\\d{2}(?!\\d)", 0, 0, "1234 56 789", 1, 0, "1 5,7"),
    ExecCase("(?<=(?<a>x)|(?<a>y))z", 0, 0, "yz", 0, 0, "1 1,2 - 0,1"),
    ExecCase("(?<=(?<a>x)|(?<a>y))z", 0, 0, "yz", 1, 0, "1 1,2 - 0,1"),
    ExecCase("(?<=(?<a>x)|(?<a>y))z", 0, 0, "xz", 0, 0, "1 1,2 0,1 -"),
    ExecCase("(?<=(?<a>x)|(?<a>y))z", 0, 0, "xz", 1, 0, "1 1,2 0,1 -"),
    ExecCase("(?<=\\k<a>(?<a>.)|(?<a>q))z", 0, 0, "aaz", 0, 0, "1 2,3 1,2 -"),
    ExecCase("(?<=\\k<a>(?<a>.)|(?<a>q))z", 0, 0, "aaz", 1, 0, "1 2,3 1,2 -"),
    ExecCase("(?<=\\k<a>(?<a>.)|(?<a>q))z", 0, 0, "qz", 0, 0, "1 1,2 - 0,1"),
    ExecCase("(?<=\\k<a>(?<a>.)|(?<a>q))z", 0, 0, "qz", 1, 0, "1 1,2 - 0,1"),
    ExecCase("(?=(a*))\\1b", 0, 0, "aaab", 0, 0, "1 0,4 0,3"),
    ExecCase("(?=(a*))\\1b", 0, 0, "aaab", 1, 0, "1 0,4 0,3"),
    ExecCase("(?=(a*))\\1b", 0, 0, "aab", 0, 0, "1 0,3 0,2"),
    ExecCase("(?=(a*))\\1b", 0, 0, "aab", 1, 0, "1 0,3 0,2"),
    ExecCase("(?=(a+?))(\\1)", 0, 0, "aaa", 0, 0, "1 0,1 0,1 0,1"),
    ExecCase("(?=(a+?))(\\1)", 0, 0, "aaa", 1, 0, "1 0,1 0,1 0,1"),
    ExecCase("(?!a|b)|c", 0, 0, "abc", 0, 0, "1 2,2"),
    ExecCase("(?!a|b)|c", 0, 0, "abc", 1, 0, "1 2,2"),
    ExecCase("((?=a))*", 0, 0, "a", 0, 0, "1 0,0 -"),
    ExecCase("((?=a))*", 0, 0, "a", 1, 0, "1 0,0 -"),
    ExecCase("(?=(a))?", 0, 0, "a", 0, 0, "1 0,0 -"),
    ExecCase("(?=(a))?", 0, 0, "a", 1, 0, "1 0,0 -"),
    ExecCase("(?:(?=(a))a)*b", 0, 0, "aab", 0, 0, "1 0,3 1,2"),
    ExecCase("(?:(?=(a))a)*b", 0, 0, "aab", 1, 0, "1 0,3 1,2"),
    ExecCase("(?!(a)b)(a)", 0, 0, "ab", 0, 0, "0"),
    ExecCase("(?!(a)b)(a)", 0, 0, "ab", 1, 0, "0"),
    ExecCase("(?!(a)b)(a)", 0, 0, "ac", 0, 0, "1 0,1 - 0,1"),
    ExecCase("(?!(a)b)(a)", 0, 0, "ac", 1, 0, "1 0,1 - 0,1"),
    ExecCase("x(?=(y))?", 0, 0, "xy", 0, 0, "1 0,1 -"),
    ExecCase("x(?=(y))?", 0, 0, "xy", 1, 0, "1 0,1 -"),
    ExecCase("(?=(a)|b)*", 0, 0, "a", 0, 0, "1 0,0 -"),
    ExecCase("(?=(a)|b)*", 0, 0, "a", 1, 0, "1 0,0 -"),
    ExecCase("(a{2}){3}", 0, 0, "aaaaaa", 0, 0, "1 0,6 4,6"),
    ExecCase("(a{2}){3}", 0, 0, "aaaaaa", 1, 0, "1 0,6 4,6"),
    ExecCase("(a{2}){3}", 0, 0, "aaaaa", 0, 0, "0"),
    ExecCase("(a{2}){3}", 0, 0, "aaaaa", 1, 0, "0"),
    ExecCase("(?:(a)|b){3}", 0, 0, "aba", 0, 0, "1 0,3 2,3"),
    ExecCase("(?:(a)|b){3}", 0, 0, "aba", 1, 0, "1 0,3 2,3"),
    ExecCase("(?:(a)|b){3}", 0, 0, "bab", 0, 0, "1 0,3 -"),
    ExecCase("(?:(a)|b){3}", 0, 0, "bab", 1, 0, "1 0,3 -"),
    ExecCase("(?:(a)|b){1,3}?c", 0, 0, "abac", 0, 0, "1 0,4 2,3"),
    ExecCase("(?:(a)|b){1,3}?c", 0, 0, "abac", 1, 0, "1 0,4 2,3"),
    ExecCase("(a{0,2}){2,3}b", 0, 0, "aaab", 0, 0, "1 0,4 2,3"),
    ExecCase("(a{0,2}){2,3}b", 0, 0, "aaab", 1, 0, "1 0,4 2,3"),
    ExecCase("(a{0,2}){2,3}b", 0, 0, "b", 0, 0, "1 0,1 0,0"),
    ExecCase("(a{0,2}){2,3}b", 0, 0, "b", 1, 0, "1 0,1 0,0"),
    ExecCase("(?:a{2,3}?){2}", 0, 0, "aaaaaa", 0, 0, "1 0,4"),
    ExecCase("(?:a{2,3}?){2}", 0, 0, "aaaaaa", 1, 0, "1 0,4"),
    ExecCase("(?:(?:a{1,2}){1,2}){2}", 0, 0, "aaaaaaa", 0, 0, "1 0,7"),
    ExecCase("(?:(?:a{1,2}){1,2}){2}", 0, 0, "aaaaaaa", 1, 0, "1 0,7"),
    ExecCase("(a|){3,5}b", 0, 0, "aab", 0, 0, "1 0,3 2,2"),
    ExecCase("(a|){3,5}b", 0, 0, "aab", 1, 0, "1 0,3 2,2"),
    ExecCase("(?:a|()){2,}", 0, 0, "aaa", 0, 0, "1 0,3 -"),
    ExecCase("(?:a|()){2,}", 0, 0, "aaa", 1, 0, "1 0,3 -"),
    ExecCase("(?:(a)|b)*?c", 0, 0, "abac", 0, 0, "1 0,4 2,3"),
    ExecCase("(?:(a)|b)*?c", 0, 0, "abac", 1, 0, "1 0,4 2,3"),
    ExecCase("(?:(a)|(b))+", 0, 0, "abab", 0, 0, "1 0,4 - 3,4"),
    ExecCase("(?:(a)|(b))+", 0, 0, "abab", 1, 0, "1 0,4 - 3,4"),
    ExecCase("(?:(a)|(b))+", 0, 0, "ba", 0, 0, "1 0,2 1,2 -"),
    ExecCase("(?:(a)|(b))+", 0, 0, "ba", 1, 0, "1 0,2 1,2 -"),
    ExecCase("(?:(a)|(b)){2}", 0, 0, "ab", 0, 0, "1 0,2 - 1,2"),
    ExecCase("(?:(a)|(b)){2}", 0, 0, "ab", 1, 0, "1 0,2 - 1,2"),
    ExecCase("(?:(a)(b)?)+", 0, 0, "aba", 0, 0, "1 0,3 2,3 -"),
    ExecCase("(?:(a)(b)?)+", 0, 0, "aba", 1, 0, "1 0,3 2,3 -"),
    ExecCase("(?:()a)+", 0, 0, "aa", 0, 0, "1 0,2 1,1"),
    ExecCase("(?:()a)+", 0, 0, "aa", 1, 0, "1 0,2 1,1"),
    ExecCase("((a)|b)+", 0, 0, "ab", 0, 0, "1 0,2 1,2 -"),
    ExecCase("((a)|b)+", 0, 0, "ab", 1, 0, "1 0,2 1,2 -"),
    ExecCase("(?:(\\w)\\1)+", 0, 0, "aabbc", 0, 0, "1 0,4 2,3"),
    ExecCase("(?:(\\w)\\1)+", 0, 0, "aabbc", 1, 0, "1 0,4 2,3"),
    ExecCase("(?:\\1(a))+", 0, 0, "aaa", 0, 0, "1 0,3 2,3"),
    ExecCase("(?:\\1(a))+", 0, 0, "aaa", 1, 0, "1 0,3 2,3"),
    ExecCase("(a)\\1{2,}", 0, 0, "aaaa", 0, 0, "1 0,4 0,1"),
    ExecCase("(a)\\1{2,}", 0, 0, "aaaa", 1, 0, "1 0,4 0,1"),
    ExecCase("(?:a*b*)*c", 0, 0, "abac", 0, 0, "1 0,4"),
    ExecCase("(?:a*b*)*c", 0, 0, "abac", 1, 0, "1 0,4"),
    ExecCase("(?:a*b*)*c", 0, 0, "c", 0, 0, "1 0,1"),
    ExecCase("(?:a*b*)*c", 0, 0, "c", 1, 0, "1 0,1"),
    ExecCase("(?:a?){3}x", 0, 0, "aax", 0, 0, "1 0,3"),
    ExecCase("(?:a?){3}x", 0, 0, "aax", 1, 0, "1 0,3"),
    ExecCase("(?:a??){2}x", 0, 0, "ax", 0, 0, "1 0,2"),
    ExecCase("(?:a??){2}x", 0, 0, "ax", 1, 0, "1 0,2"),
    ExecCase("(?:(?:)|a){2,4}b", 0, 0, "aab", 0, 0, "1 0,3"),
    ExecCase("(?:(?:)|a){2,4}b", 0, 0, "aab", 1, 0, "1 0,3"),
    ExecCase("(?:^|,)(\\w*)", 0, 0, ",x", 0, 0, "1 0,0 0,0"),
    ExecCase("(?:^|,)(\\w*)", 0, 0, ",x", 1, 0, "1 0,0 0,0"),
    ExecCase("(\\s*)*y", 0, 0, "  y", 0, 0, "1 0,3 0,2"),
    ExecCase("(\\s*)*y", 0, 0, "  y", 1, 0, "1 0,3 0,2"),
    ExecCase("(a*)+?b", 0, 0, "aab", 0, 0, "1 0,3 0,2"),
    ExecCase("(a*)+?b", 0, 0, "aab", 1, 0, "1 0,3 0,2"),
    ExecCase("(?:a{0,3}){2,}b", 0, 0, "aaaaaaab", 0, 0, "1 0,8"),
    ExecCase("(?:a{0,3}){2,}b", 0, 0, "aaaaaaab", 1, 0, "1 0,8"),
    ExecCase("a{3,}?", 0, 0, "aaaaa", 0, 0, "1 0,3"),
    ExecCase("a{3,}?", 0, 0, "aaaaa", 1, 0, "1 0,3"),
    ExecCase("(a{2,}?)(a*)", 0, 0, "aaaaa", 0, 0, "1 0,5 0,2 2,5"),
    ExecCase("(a{2,}?)(a*)", 0, 0, "aaaaa", 1, 0, "1 0,5 0,2 2,5"),
    ExecCase("(?:x{1,}|y{2,})+z", 0, 0, "xyyxz", 0, 0, "1 0,5"),
    ExecCase("(?:x{1,}|y{2,})+z", 0, 0, "xyyxz", 1, 0, "1 0,5"),
    ExecCase("(?:x{1,}|y{2,})+z", 0, 0, "xyz", 0, 0, "0"),
    ExecCase("(?:x{1,}|y{2,})+z", 0, 0, "xyz", 1, 0, "0"),
    ExecCase("^(?:a|ab)*c$", 0, 0, "abac", 0, 0, "1 0,4"),
    ExecCase("^(?:a|ab)*c$", 0, 0, "abac", 1, 0, "1 0,4"),
    ExecCase("^(?:a|ab)*c$", 0, 0, "ababab", 0, 0, "0"),
    ExecCase("^(?:a|ab)*c$", 0, 0, "ababab", 1, 0, "0"),
    ExecCase("(\\2)(a)", 0, 0, "aa", 0, 0, "1 0,1 0,0 0,1"),
    ExecCase("(\\2)(a)", 0, 0, "aa", 1, 0, "1 0,1 0,0 0,1"),
    ExecCase("(a)|\\1b", 0, 0, "b", 0, 0, "1 0,1 -"),
    ExecCase("(a)|\\1b", 0, 0, "b", 1, 0, "1 0,1 -"),
    ExecCase("(?<n>a)|(?<n>b)|(?<n>c)", 0, 0, "c", 0, 0, "1 0,1 - - 0,1"),
    ExecCase("(?<n>a)|(?<n>b)|(?<n>c)", 0, 0, "c", 1, 0, "1 0,1 - - 0,1"),
    ExecCase("(?<n>a)|(?<n>b)|(?<n>c)", 0, 0, "b", 0, 0, "1 0,1 - 0,1 -"),
    ExecCase("(?<n>a)|(?<n>b)|(?<n>c)", 0, 0, "b", 1, 0, "1 0,1 - 0,1 -"),
    ExecCase("(?:(?<n>a)|(?<n>b))\\k<n>{2}", 0, 0, "bbb", 0, 0, "1 0,3 - 0,1"),
    ExecCase("(?:(?<n>a)|(?<n>b))\\k<n>{2}", 0, 0, "bbb", 1, 0, "1 0,3 - 0,1"),
    ExecCase("(?:(?<n>a)|(?<n>b))\\k<n>{2}", 0, 0, "aaa", 0, 0, "1 0,3 0,1 -"),
    ExecCase("(?:(?<n>a)|(?<n>b))\\k<n>{2}", 0, 0, "aaa", 1, 0, "1 0,3 0,1 -"),
    ExecCase("(?:(?<n>a)|b)(?:(?<m>x)|(?<m>y))\\k<m>", 0, 0, "ayy", 0, 0, "1 0,3 0,1 - 1,2"),
    ExecCase("(?:(?<n>a)|b)(?:(?<m>x)|(?<m>y))\\k<m>", 0, 0, "ayy", 1, 0, "1 0,3 0,1 - 1,2"),
    ExecCase("(?:(?<n>a)|b)(?:(?<m>x)|(?<m>y))\\k<m>", 0, 0, "bxx", 0, 0, "1 0,3 - 1,2 -"),
    ExecCase("(?:(?<n>a)|b)(?:(?<m>x)|(?<m>y))\\k<m>", 0, 0, "bxx", 1, 0, "1 0,3 - 1,2 -"),
    ExecCase("\\k<n>(?:(?<n>a)|(?<n>b))", 0, 0, "aa", 0, 0, "1 0,1 0,1 -"),
    ExecCase("\\k<n>(?:(?<n>a)|(?<n>b))", 0, 0, "aa", 1, 0, "1 0,1 0,1 -"),
    ExecCase("\\k<n>(?:(?<n>a)|(?<n>b))", 0, 0, "b", 0, 0, "1 0,1 - 0,1"),
    ExecCase("\\k<n>(?:(?<n>a)|(?<n>b))", 0, 0, "b", 1, 0, "1 0,1 - 0,1"),
    ExecCase("(?i:a(?-i:b)c)", 0, 0, "AbC", 0, 0, "1 0,3"),
    ExecCase("(?i:a(?-i:b)c)", 0, 0, "AbC", 1, 0, "1 0,3"),
    ExecCase("(?i:a(?-i:b)c)", 0, 0, "ABC", 0, 0, "0"),
    ExecCase("(?i:a(?-i:b)c)", 0, 0, "ABC", 1, 0, "0"),
    ExecCase("(?i:(a))\\1", 0, 0, "AA", 0, 0, "1 0,2 0,1"),
    ExecCase("(?i:(a))\\1", 0, 0, "AA", 1, 0, "1 0,2 0,1"),
    ExecCase("(?i:(a))\\1", 0, 0, "Aa", 0, 0, "0"),
    ExecCase("(?i:(a))\\1", 0, 0, "Aa", 1, 0, "0"),
    ExecCase("(a)(?i:\\1)", 0, 0, "aA", 0, 0, "1 0,2 0,1"),
    ExecCase("(a)(?i:\\1)", 0, 0, "aA", 1, 0, "1 0,2 0,1"),
    ExecCase("(?i:[a-c])+", 0, 0, "AbC", 0, 0, "1 0,3"),
    ExecCase("(?i:[a-c])+", 0, 0, "AbC", 1, 0, "1 0,3"),
    ExecCase("(?i:\\bK)", 16, 0, "%212a", 1, 0, "1 0,1"),
    ExecCase("(?ims:^a.b$)", 0, 0, "x%000aA%000aB", 0, 0, "1 2,5"),
    ExecCase("(?ims:^a.b$)", 0, 0, "x%000aA%000aB", 1, 0, "1 2,5"),
    ExecCase("(?m-i:^B)", 2, 0, "a%000aB", 0, 0, "1 2,3"),
    ExecCase("(?m-i:^B)", 2, 0, "a%000aB", 1, 0, "1 2,3"),
    ExecCase("(?m-i:^B)", 2, 0, "a%000ab", 0, 0, "0"),
    ExecCase("(?m-i:^B)", 2, 0, "a%000ab", 1, 0, "0"),
    ExecCase("(?s-m:a.$)", 4, 0, "a%000a%000a", 0, 0, "0"),
    ExecCase("(?s-m:a.$)", 4, 0, "a%000a%000a", 1, 0, "0"),
    ExecCase("(?i:\\p{Lu})", 16, 0, "a", 0, 0, "1 0,1"),
    ExecCase("(?i:\\p{Lu})", 16, 0, "a", 1, 0, "1 0,1"),
    ExecCase("(?i:[^a])", 0, 0, "A", 0, 0, "0"),
    ExecCase("(?i:[^a])", 0, 0, "A", 1, 0, "0"),
    ExecCase("(a)\\1", 2, 0, "aA", 0, 0, "1 0,2 0,1"),
    ExecCase("(a)\\1", 2, 0, "aA", 1, 0, "1 0,2 0,1"),
    ExecCase("(\\u{10400})\\1", 18, 0, "%d801%dc00%d801%dc28", 1, 0, "1 0,4 0,2"),
    ExecCase("(\u{df})\\1", 2, 0, "%00df%1e9e", 1, 0, "0"),
    ExecCase("(\u{17f})\\1", 18, 0, "%017fs", 1, 0, "1 0,2 0,1"),
    ExecCase("(\u{17f})\\1", 18, 0, "%017fS", 1, 0, "1 0,2 0,1"),
    ExecCase("(k)\\1", 18, 0, "k%212a", 1, 0, "1 0,2 0,1"),
    ExecCase("[\\w\\d]", 18, 0, "%212a", 1, 0, "1 0,1"),
    ExecCase("[^\\w]", 18, 0, "%212a", 1, 0, "0"),
    ExecCase("\\W", 2, 0, "%212a", 1, 0, "1 0,1"),
    ExecCase("[k-m]", 2, 0, "%212a", 1, 0, "0"),
    ExecCase("[k-m]", 18, 0, "%212a", 1, 0, "1 0,1"),
    ExecCase("\\u0130", 18, 0, "i", 0, 0, "0"),
    ExecCase("\\u0130", 18, 0, "i", 1, 0, "0"),
    ExecCase("\\u0130", 18, 0, "I", 0, 0, "0"),
    ExecCase("\\u0130", 18, 0, "I", 1, 0, "0"),
    ExecCase("\\u0131", 2, 0, "I", 0, 0, "0"),
    ExecCase("\\u0131", 2, 0, "I", 1, 0, "0"),
    ExecCase("\\u0131", 2, 0, "i", 0, 0, "0"),
    ExecCase("\\u0131", 2, 0, "i", 1, 0, "0"),
    ExecCase("[\\u00e5]", 2, 0, "%212b", 1, 0, "0"),
    ExecCase("[\\u00e5]", 18, 0, "%212b", 1, 0, "1 0,1"),
    ExecCase("\\u03c2", 18, 0, "%03a3", 1, 0, "1 0,1"),
    ExecCase("\\u03c2", 18, 0, "%03c3", 1, 0, "1 0,1"),
    ExecCase("[^\\u03c3]", 18, 0, "%03c2", 1, 0, "0"),
    ExecCase("\\p{Ll}", 18, 0, "A", 0, 0, "1 0,1"),
    ExecCase("\\p{Ll}", 18, 0, "A", 1, 0, "1 0,1"),
    ExecCase("\\p{Ll}", 18, 0, "1", 0, 0, "0"),
    ExecCase("\\p{Ll}", 18, 0, "1", 1, 0, "0"),
    ExecCase("[\\p{Ll}--\\p{ASCII}]", 258, 0, "A", 0, 0, "0"),
    ExecCase("[\\p{Ll}--\\p{ASCII}]", 258, 0, "A", 1, 0, "0"),
    ExecCase("[\\p{Ll}--\\p{ASCII}]", 258, 0, "%00c0", 0, 0, "1 0,1"),
    ExecCase("[\\p{Ll}--\\p{ASCII}]", 258, 0, "%00c0", 1, 0, "1 0,1"),
    ExecCase("\\p{Lu}", 258, 0, "a", 0, 0, "1 0,1"),
    ExecCase("\\p{Lu}", 258, 0, "a", 1, 0, "1 0,1"),
    ExecCase("^.", 16, 0, "%de00%d83d", 1, 0, "1 0,1"),
    ExecCase("\\S", 16, 0, "%d83d%de00", 1, 0, "1 0,2"),
    ExecCase("[^a]", 16, 0, "%d83d%de00", 1, 0, "1 0,2"),
    ExecCase("[^a]", 0, 0, "%d83d%de00", 1, 0, "1 0,1"),
    ExecCase("[\\uD83D\\uDE00]", 0, 0, "%d83d%de00", 1, 0, "1 0,1"),
    ExecCase("[\\uD83D\\uDE00]", 16, 0, "%d83d%de00", 1, 0, "1 0,2"),
    ExecCase("[\\uD83D\\uDE00]", 16, 0, "%de00", 1, 0, "0"),
    ExecCase("[\\ud83d]", 16, 0, "%d83d%de00", 1, 0, "0"),
    ExecCase("[\\ud83d]", 16, 0, "%d83d", 1, 0, "1 0,1"),
    ExecCase("\\ude00", 16, 0, "%de00", 1, 0, "1 0,1"),
    ExecCase("\\ude00", 16, 0, "%d83d%de00", 1, 0, "0"),
    ExecCase("\\b", 16, 0, "%d83d%de00a", 1, 0, "1 2,2"),
    ExecCase("\\b", 16, 0, "%d83d%de00a", 1, 1, "1 2,2"),
    ExecCase("\\b", 16, 0, "%d83d%de00a", 1, 2, "1 2,2"),
    ExecCase("\\B.", 16, 0, "%d83d%de00a", 1, 1, "1 0,2"),
    ExecCase("$", 16, 0, "%d83d%de00", 1, 1, "1 2,2"),
    ExecCase("x*", 16, 0, "%d83d%de00", 1, 1, "1 0,0"),
    ExecCase("x*", 0, 0, "%d83d%de00", 1, 1, "1 1,1"),
    ExecCase("\\uD83D\\uDE00", 32, 0, "%d83d%de00", 1, 0, "1 0,2"),
    ExecCase("\\uD83D\\uDE00", 32, 0, "%d83d%de00", 1, 1, "0"),
    ExecCase(".", 48, 0, "%d83d%de00", 1, 1, "1 0,2"),
    ExecCase("(?:)", 16, 0, "%d83d%de00", 1, 1, "1 0,0"),
    ExecCase("\\u{1F600}{2}", 16, 0, "%d83d%de00%d83d%de00", 1, 0, "1 0,4"),
    ExecCase("\\p{Emoji_Presentation}", 16, 0, "a%d83d%de00", 1, 0, "1 1,3"),
    ExecCase("\\p{Script=Han}+", 16, 0, "x%4e00%d840%dc00y", 1, 0, "1 1,4"),
    ExecCase("[^\\p{L}]+", 16, 0, "%d83d%de00%d83d%de00a", 1, 0, "1 0,4"),
    ExecCase("\\P{Any}", 16, 0, "a", 0, 0, "0"),
    ExecCase("\\P{Any}", 16, 0, "a", 1, 0, "0"),
    ExecCase("[\\s\\S]{2}", 16, 0, "%d83d%de00a", 1, 0, "1 0,3"),
    ExecCase("[\\q{ab|c}--\\q{c}]", 256, 0, "c", 0, 0, "0"),
    ExecCase("[\\q{ab|c}--\\q{c}]", 256, 0, "c", 1, 0, "0"),
    ExecCase("[\\q{ab|c}--\\q{c}]", 256, 0, "ab", 0, 0, "1 0,2"),
    ExecCase("[\\q{ab|c}--\\q{c}]", 256, 0, "ab", 1, 0, "1 0,2"),
    ExecCase("[\\q{ab|c}&&\\q{ab}]", 256, 0, "ab", 0, 0, "1 0,2"),
    ExecCase("[\\q{ab|c}&&\\q{ab}]", 256, 0, "ab", 1, 0, "1 0,2"),
    ExecCase("[\\q{ab|c}&&\\q{ab}]", 256, 0, "c", 0, 0, "0"),
    ExecCase("[\\q{ab|c}&&\\q{ab}]", 256, 0, "c", 1, 0, "0"),
    ExecCase("[\\p{RGI_Emoji}--\\q{\u{1f600}}]", 256, 0, "%d83d%de00", 1, 0, "0"),
    ExecCase("[\\p{RGI_Emoji}--\\q{\u{1f600}}]", 256, 0, "%d83d%de01", 1, 0, "1 0,2"),
    ExecCase("[[a-z]&&[^aeiou]]+", 256, 0, "bcad", 0, 0, "1 0,2"),
    ExecCase("[[a-z]&&[^aeiou]]+", 256, 0, "bcad", 1, 0, "1 0,2"),
    ExecCase("[^[^a]]", 256, 0, "a", 0, 0, "1 0,1"),
    ExecCase("[^[^a]]", 256, 0, "a", 1, 0, "1 0,1"),
    ExecCase("[^[^a]]", 256, 0, "b", 0, 0, "0"),
    ExecCase("[^[^a]]", 256, 0, "b", 1, 0, "0"),
    ExecCase("[[^a]--b]", 256, 0, "b", 0, 0, "0"),
    ExecCase("[[^a]--b]", 256, 0, "b", 1, 0, "0"),
    ExecCase("[[^a]--b]", 256, 0, "c", 0, 0, "1 0,1"),
    ExecCase("[[^a]--b]", 256, 0, "c", 1, 0, "1 0,1"),
    ExecCase("[\\d--3]+", 256, 0, "1234", 0, 0, "1 0,2"),
    ExecCase("[\\d--3]+", 256, 0, "1234", 1, 0, "1 0,2"),
    ExecCase("[a-c\\q{xyz}]+", 256, 0, "xyzab", 0, 0, "1 0,5"),
    ExecCase("[a-c\\q{xyz}]+", 256, 0, "xyzab", 1, 0, "1 0,5"),
    ExecCase("[\\q{xyz|xy|x}]", 256, 0, "xyzz", 0, 0, "1 0,3"),
    ExecCase("[\\q{xyz|xy|x}]", 256, 0, "xyzz", 1, 0, "1 0,3"),
    ExecCase("[\\q{KK}]", 258, 0, "kk", 0, 0, "1 0,2"),
    ExecCase("[\\q{KK}]", 258, 0, "kk", 1, 0, "1 0,2"),
    ExecCase("[\\q{\\u{1F600}a}]", 256, 0, "%d83d%de00a", 1, 0, "1 0,3"),
    ExecCase("[\\p{RGI_Emoji}a]+", 256, 0, "a%d83d%dc4d%d83c%dffd%d83c%ddeb%d83c%ddf7", 1, 0, "1 0,9"),
    ExecCase("\\p{RGI_Emoji_Flag_Sequence}", 256, 0, "%d83c%ddeb%d83c%ddf7", 1, 0, "1 0,4"),
    ExecCase("\\p{Basic_Emoji}", 256, 0, "%231a", 1, 0, "1 0,1"),
    ExecCase("[\\w--\\d]+", 256, 0, "a1b", 0, 0, "1 0,1"),
    ExecCase("[\\w--\\d]+", 256, 0, "a1b", 1, 0, "1 0,1"),
    ExecCase("[\\p{ASCII}&&\\p{L}]+", 256, 0, "ab%00e9", 0, 0, "1 0,2"),
    ExecCase("[\\p{ASCII}&&\\p{L}]+", 256, 0, "ab%00e9", 1, 0, "1 0,2"),
    ExecCase("(?<=[\\q{ab}])c", 256, 0, "abc", 0, 0, "0"),
    ExecCase("(?<=[\\q{ab}])c", 256, 0, "abc", 1, 0, "0"),
    ExecCase("[\\q{ab}]{2}", 256, 0, "abab", 0, 0, "1 0,4"),
    ExecCase("[\\q{ab}]{2}", 256, 0, "abab", 1, 0, "1 0,4"),
    ExecCase("^\\s*$", 4, 0, "a%000a  %000ab", 0, 0, "1 2,4"),
    ExecCase("^\\s*$", 4, 0, "a%000a  %000ab", 1, 0, "1 2,4"),
    ExecCase("$", 4, 0, "a%2028b", 1, 0, "1 1,1"),
    ExecCase("^b", 4, 0, "a%2029b", 1, 0, "1 2,3"),
    ExecCase("^b", 4, 0, "a%000db", 0, 0, "1 2,3"),
    ExecCase("^b", 4, 0, "a%000db", 1, 0, "1 2,3"),
    ExecCase(".+", 0, 0, "a%2028b", 1, 0, "1 0,1"),
    ExecCase(".+", 8, 0, "a%2028b", 1, 0, "1 0,3"),
    ExecCase("\\b\\w", 0, 0, "%00e9a", 0, 0, "1 1,2"),
    ExecCase("\\b\\w", 0, 0, "%00e9a", 1, 0, "1 1,2"),
    ExecCase("a\\B", 0, 0, "ab", 0, 0, "1 0,1"),
    ExecCase("a\\B", 0, 0, "ab", 1, 0, "1 0,1"),
    ExecCase("a\\B", 0, 0, "a", 0, 0, "0"),
    ExecCase("a\\B", 0, 0, "a", 1, 0, "0"),
    ExecCase("\\c0", 0, 0, "%005cc0", 0, 0, "1 0,3"),
    ExecCase("\\c0", 0, 0, "%005cc0", 1, 0, "1 0,3"),
    ExecCase("[\\c0]", 0, 0, "%0010", 0, 0, "1 0,1"),
    ExecCase("[\\c0]", 0, 0, "%0010", 1, 0, "1 0,1"),
    ExecCase("\\a", 0, 0, "a", 0, 0, "1 0,1"),
    ExecCase("\\a", 0, 0, "a", 1, 0, "1 0,1"),
    ExecCase("\\-", 0, 0, "-", 0, 0, "1 0,1"),
    ExecCase("\\-", 0, 0, "-", 1, 0, "1 0,1"),
    ExecCase("[\\d-z]+", 0, 0, "-z1", 0, 0, "1 0,3"),
    ExecCase("[\\d-z]+", 0, 0, "-z1", 1, 0, "1 0,3"),
    ExecCase("[z-\\d]+", 0, 0, "-z1", 0, 0, "1 0,3"),
    ExecCase("[z-\\d]+", 0, 0, "-z1", 1, 0, "1 0,3"),
    ExecCase("a{2,3", 0, 0, "a{2,3", 0, 0, "1 0,5"),
    ExecCase("a{2,3", 0, 0, "a{2,3", 1, 0, "1 0,5"),
    ExecCase("a{", 0, 0, "a{", 0, 0, "1 0,2"),
    ExecCase("a{", 0, 0, "a{", 1, 0, "1 0,2"),
    ExecCase("\\1\\2(a)(b)", 0, 0, "ab", 0, 0, "1 0,2 0,1 1,2"),
    ExecCase("\\1\\2(a)(b)", 0, 0, "ab", 1, 0, "1 0,2 0,1 1,2"),
    ExecCase("\\11", 0, 0, "%0009", 0, 0, "1 0,1"),
    ExecCase("\\11", 0, 0, "%0009", 1, 0, "1 0,1"),
    ExecCase("(a)\\11", 0, 0, "a%0009", 0, 0, "1 0,2 0,1"),
    ExecCase("(a)\\11", 0, 0, "a%0009", 1, 0, "1 0,2 0,1"),
    ExecCase("\\012", 0, 0, "%000a", 0, 0, "1 0,1"),
    ExecCase("\\012", 0, 0, "%000a", 1, 0, "1 0,1"),
    ExecCase("\\x4g", 0, 0, "x4g", 0, 0, "1 0,3"),
    ExecCase("\\x4g", 0, 0, "x4g", 1, 0, "1 0,3"),
    ExecCase("\\u12", 0, 0, "u12", 0, 0, "1 0,3"),
    ExecCase("\\u12", 0, 0, "u12", 1, 0, "1 0,3"),
    ExecCase("\\u{12}", 0, 0, "uuuuuuuuuuuu", 0, 0, "1 0,12"),
    ExecCase("\\u{12}", 0, 0, "uuuuuuuuuuuu", 1, 0, "1 0,12"),
    ExecCase("\\k<a>(?<a>b)", 0, 0, "b", 0, 0, "1 0,1 0,1"),
    ExecCase("\\k<a>(?<a>b)", 0, 0, "b", 1, 0, "1 0,1 0,1"),
    ExecCase("[\\k]", 0, 0, "k", 0, 0, "1 0,1"),
    ExecCase("[\\k]", 0, 0, "k", 1, 0, "1 0,1"),
    ExecCase("\\p{L}", 0, 0, "p{L}", 0, 0, "1 0,4"),
    ExecCase("\\p{L}", 0, 0, "p{L}", 1, 0, "1 0,4"),
    ExecCase("(?<=a)b", 32, 0, "ab", 0, 0, "0"),
    ExecCase("(?<=a)b", 32, 0, "ab", 1, 0, "0"),
    ExecCase("(?<=a)b", 32, 0, "ab", 0, 1, "1 1,2"),
    ExecCase("(?<=a)b", 32, 0, "ab", 1, 1, "1 1,2"),
    ExecCase("b|", 32, 0, "ab", 0, 0, "1 0,0"),
    ExecCase("b|", 32, 0, "ab", 1, 0, "1 0,0"),
    ExecCase("b|", 32, 0, "ab", 0, 1, "1 1,2"),
    ExecCase("b|", 32, 0, "ab", 1, 1, "1 1,2"),
    ExecCase("b|", 32, 0, "ab", 0, 2, "1 2,2"),
    ExecCase("b|", 32, 0, "ab", 1, 2, "1 2,2"),
    ExecCase("a*", 32, 0, "aab", 0, 1, "1 1,2"),
    ExecCase("a*", 32, 0, "aab", 1, 1, "1 1,2"),
    ExecCase("a*", 32, 0, "aab", 0, 2, "1 2,2"),
    ExecCase("a*", 32, 0, "aab", 1, 2, "1 2,2"),
    ExecCase("a*", 32, 0, "aab", 0, 3, "1 3,3"),
    ExecCase("a*", 32, 0, "aab", 1, 3, "1 3,3"),
    ExecCase("\\d+", 1, 0, "a1b22c", 0, 0, "1 1,2"),
    ExecCase("\\d+", 1, 0, "a1b22c", 1, 0, "1 1,2"),
    ExecCase("\\d+", 1, 0, "a1b22c", 0, 2, "1 3,5"),
    ExecCase("\\d+", 1, 0, "a1b22c", 1, 2, "1 3,5"),
    ExecCase("\\d+", 1, 0, "a1b22c", 0, 3, "1 3,5"),
    ExecCase("\\d+", 1, 0, "a1b22c", 1, 3, "1 3,5"),
    ExecCase("\\d+", 1, 0, "a1b22c", 0, 5, "0"),
    ExecCase("\\d+", 1, 0, "a1b22c", 1, 5, "0"),
    ExecCase("\\d+", 1, 0, "a1b22c", 0, 6, "0"),
    ExecCase("\\d+", 1, 0, "a1b22c", 1, 6, "0"),
    ExecCase("^(\\w+\\s?)*$", 0, 0, "aaaa bbbb cccc dddd", 0, 0, "1 0,19 15,19"),
    ExecCase("^(\\w+\\s?)*$", 0, 0, "aaaa bbbb cccc dddd", 1, 0, "1 0,19 15,19"),
    ExecCase("(x+x+)+y", 0, 0, "xxxxxxxxxxy", 0, 0, "1 0,11 0,10"),
    ExecCase("(x+x+)+y", 0, 0, "xxxxxxxxxxy", 1, 0, "1 0,11 0,10"),
    ExecCase("([a-z]+)@([a-z]+)\\.com", 0, 0, "mail: joe@example.com.", 0, 0, "1 6,21 6,9 10,17"),
    ExecCase("([a-z]+)@([a-z]+)\\.com", 0, 0, "mail: joe@example.com.", 1, 0, "1 6,21 6,9 10,17"),
]