testRegex "(a)b|" [ERROR] [] [Just ["Capturing subpattern count = 1"], Just ["No options"], Just ["No first char"], Just ["No need char"]] , testRegex "abc" [ERROR] ["abc", "defabc", "\\Aabc", "*** Failers", "\\Adefabc", "ABC"] [Just ["Capturing subpattern count = 0"], Just ["No options"], Just ["First char = 'a'"], Just ["Need char = 'c'"], Just [" 0: abc"], Just [" 0: abc"], Just [" 0: abc"], Nothing, Nothing, Nothing] , testRegex "^abc" [ERROR] ["abc", "\\Aabc", "*** Failers", "defabc", "\\Adefabc"] [Just ["Capturing subpattern count = 0"], Just ["Options: anchored"], Just ["No first char"], Just ["No need char"], Just [" 0: abc"], Just [" 0: abc"], Nothing, Nothing, Nothing] , testRegex "a+bc" [ERROR] [] [Just ["Capturing subpattern count = 0"], Just ["Partial matching not supported"], Just ["No options"], Just ["First char = 'a'"], Just ["Need char = 'c'"]] , testRegex "a*bc" [ERROR] [] [Just ["Capturing subpattern count = 0"], Just ["Partial matching not supported"], Just ["No options"], Just ["No first char"], Just ["Need char = 'c'"]] , testRegex "a{3}bc" [ERROR] [] [Just ["Capturing subpattern count = 0"], Just ["Partial matching not supported"], Just ["No options"], Just ["First char = 'a'"], Just ["Need char = 'c'"]] , testRegex "(abc|a+z)" [ERROR] [] [Just ["Capturing subpattern count = 1"], Just ["Partial matching not supported"], Just ["No options"], Just ["First char = 'a'"], Just ["No need char"]] , testRegex "^abc$" [ERROR] ["abc", "*** Failers", "def\\nabc"] [Just ["Capturing subpattern count = 0"], Just ["Options: anchored"], Just ["No first char"], Just ["No need char"], Just [" 0: abc"], Nothing, Nothing] , testRegex "ab\\idef" [ERROR] [] [Just ["Failed: unrecognized character follows \\ at offset 3"]] , testRegex "(?X)ab\\idef" [ERROR] [] [Just ["Failed: unrecognized character follows \\ at offset 7"]] , testRegex "x{5,4}" [] [] [Just ["Failed: numbers out of order in {} quantifier at offset 5"]] , testRegex "z{65536}" [] [] [Just ["Failed: number too big in {} quantifier at offset 7"]] , testRegex "[abcd" [] [] [Just ["Failed: missing terminating ] for character class at offset 5"]] , testRegex "(?X)[\\B]" [] [] [Just ["Failed: invalid escape sequence in character class at offset 6"]] , testRegex "[z-a]" [] [] [Just ["Failed: range out of order in character class at offset 3"]] , testRegex "^*" [] [] [Just ["Failed: nothing to repeat at offset 1"]] , testRegex "(abc" [] [] [Just ["Failed: missing ) at offset 4"]] , testRegex "(?# abc" [] [] [Just ["Failed: missing ) after comment at offset 7"]] , testRegex "(?z)abc" [] [] [Just ["Failed: unrecognized character after (? at offset 2"]] , testRegex ".*b" [ERROR] [] [Just ["Capturing subpattern count = 0"], Just ["Partial matching not supported"], Just ["No options"], Just ["First char at start or follows newline"], Just ["Need char = 'b'"]] , testRegex ".*?b" [ERROR] [] [Just ["Capturing subpattern count = 0"], Just ["Partial matching not supported"], Just ["No options"], Just ["First char at start or follows newline"], Just ["Need char = 'b'"]] , testRegex "cat|dog|elephant" [ERROR] ["this sentence eventually mentions a cat", "this sentences rambles on and on for a while and then reaches elephant"] [Just ["Capturing subpattern count = 0"], Just ["No options"], Just ["No first char"], Just ["No need char"], Just [" 0: cat"], Just [" 0: elephant"]] , testRegex "cat|dog|elephant" [ERROR] ["this sentence eventually mentions a cat", "this sentences rambles on and on for a while and then reaches elephant"] [Just ["Capturing subpattern count = 0"], Just ["No options"], Just ["No first char"], Just ["No need char"], Just ["Starting byte set: c d e "], Just [" 0: cat"], Just [" 0: elephant"]] , testRegex "cat|dog|elephant" [ERROR] ["this sentence eventually mentions a CAT cat", "this sentences rambles on and on for a while to elephant ElePhant"] [Just ["Capturing subpattern count = 0"], Just ["Options: caseless"], Just ["No first char"], Just ["No need char"], Just ["Starting byte set: C D E c d e "], Just [" 0: CAT"], Just [" 0: elephant"]] , testRegex "a|[bcd]" [ERROR] [] [Just ["Capturing subpattern count = 0"], Just ["No options"], Just ["No first char"], Just ["No need char"], Just ["Starting byte set: a b c d "]] , testRegex "(a|[^\\dZ])" [ERROR] [] [Just ["Capturing subpattern count = 1"], Just ["No options"], Just ["No first char"], Just ["No need char"], Just ["Starting byte set: \\x00 \\x01 \\x02 \\x03 \\x04 \\x05 \\x06 \\x07 \\x08 \\x09 \\x0a "]] , testRegex "(a|b)*[\\s]" [ERROR] [] [Just ["Capturing subpattern count = 1"], Just ["No options"], Just ["No first char"], Just ["No need char"], Just ["Starting byte set: \\x09 \\x0a \\x0c \\x0d \\x20 a b "]] , testRegex "(ab\\2)" [] [] [Just ["Failed: reference to non-existent subpattern at offset 6"]] , testRegex "{4,5}abc" [] [] [Just ["Failed: nothing to repeat at offset 4"]] , testRegex "(a)(b)(c)\\2" [ERROR] ["abcb", "\\O0abcb", "\\O3abcb", "\\O6abcb", "\\O9abcb", "\\O12abcb"] [Just ["Capturing subpattern count = 3"], Just ["Max back reference = 2"], Just ["No options"], Just ["First char = 'a'"], Just ["Need char = 'c'"], Just [" 0: abcb"], Just [" 1: a"], Just [" 2: b"], Just [" 3: c"], Just ["Matched, but too many substrings"], Just ["Matched, but too many substrings"], Just [" 0: abcb"], Just ["Matched, but too many substrings"], Just [" 0: abcb"], Just [" 1: a"], Just ["Matched, but too many substrings"], Just [" 0: abcb"], Just [" 1: a"], Just [" 2: b"], Just [" 0: abcb"], Just [" 1: a"], Just [" 2: b"], Just [" 3: c"]] , testRegex "(a)bc|(a)(b)\\2" [ERROR] ["abc", "\\O0abc", "\\O3abc", "\\O6abc", "aba", "\\O0aba", "\\O3aba", "\\O6aba", "\\O9aba", "\\O12aba"] [Just ["Capturing subpattern count = 3"], Just ["Max back reference = 2"], Just ["No options"], Just ["First char = 'a'"], Just ["No need char"], Just [" 0: abc"], Just [" 1: a"], Just ["Matched, but too many substrings"], Just ["Matched, but too many substrings"], Just [" 0: abc"], Just [" 0: abc"], Just [" 1: a"], Just [" 0: aba"], Just [" 1: "], Just [" 2: a"], Just [" 3: b"], Just ["Matched, but too many substrings"], Just ["Matched, but too many substrings"], Just [" 0: aba"], Just ["Matched, but too many substrings"], Just [" 0: aba"], Just [" 1: "], Just ["Matched, but too many substrings"], Just [" 0: aba"], Just [" 1: "], Just [" 2: a"], Just [" 0: aba"], Just [" 1: "], Just [" 2: a"], Just [" 3: b"]] , testRegex "abc$" [ERROR] ["abc", "*** Failers", "abc\\n", "abc\\ndef"] [Just ["Capturing subpattern count = 0"], Just ["Options: dollar_endonly"], Just ["First char = 'a'"], Just ["Need char = 'c'"], Just [" 0: abc"], Nothing, Nothing, Nothing] , testRegex "(a)(b)(c)(d)(e)\\6" [] [] [Just ["Failed: reference to non-existent subpattern at offset 17"]] , testRegex "the quick brown fox" [ERROR] ["the quick brown fox", "this is a line with the quick brown fox"] [Just ["Capturing subpattern count = 0"], Just ["No options"], Just ["First char = 't'"], Just ["Need char = 'x'"], Just [" 0: the quick brown fox"], Just [" 0: the quick brown fox"]] , testRegex "the quick brown fox" [ERROR] ["the quick brown fox", "*** Failers", "this is a line with the quick brown fox"] [Just ["Capturing subpattern count = 0"], Just ["Options: anchored"], Just ["No first char"], Just ["No need char"], Just [" 0: the quick brown fox"], Nothing, Nothing] , testRegex "ab(?z)cd" [] [] [Just ["Failed: unrecognized character after (? at offset 4"]] , testRegex "^abc|def" [ERROR] ["abcdef", "abcdef\\B"] [Just ["Capturing subpattern count = 0"], Just ["No options"], Just ["No first char"], Just ["No need char"], Just [" 0: abc"], Just [" 0: def"]] , testRegex ".*((abc)$|(def))" [ERROR] ["defabc", "\\Zdefabc"] [Just ["Capturing subpattern count = 3"], Just ["Partial matching not supported"], Just ["No options"], Just ["First char at start or follows newline"], Just ["No need char"], Just [" 0: defabc"], Just [" 1: abc"], Just [" 2: abc"], Just [" 0: def"], Just [" 1: def"], Just [" 2: "], Just [" 3: def"]] , testRegex "abc" [ERROR] ["abc", "*** Failers"] [Just [" 0: abc"], Just ["No match: POSIX code 17: match failed"]] , testRegex "^abc|def" [ERROR] ["abcdef", "abcdef\\B"] [Just [" 0: abc"], Just [" 0: def"]] , testRegex ".*((abc)$|(def))" [ERROR] ["defabc", "\\Zdefabc"] [Just [" 0: defabc"], Just [" 1: abc"], Just [" 2: abc"], Just [" 0: def"], Just [" 1: def"], Just [" 3: def"]] , testRegex "the quick brown fox" [ERROR] ["the quick brown fox", "*** Failers", "The Quick Brown Fox"] [Just [" 0: the quick brown fox"], Just ["No match: POSIX code 17: match failed"], Just ["No match: POSIX code 17: match failed"]] , testRegex "the quick brown fox" [caseless] ["the quick brown fox", "The Quick Brown Fox"] [Just [" 0: the quick brown fox"], Just [" 0: The Quick Brown Fox"]] , testRegex "abc.def" [ERROR] ["*** Failers", "abc\\ndef"] [Just ["No match: POSIX code 17: match failed"], Just ["No match: POSIX code 17: match failed"]] , testRegex "abc$" [ERROR] ["abc", "abc\\n"] [Just [" 0: abc"], Just [" 0: abc"]] , testRegex "(abc)\\2" [ERROR] [] [Just ["Failed: POSIX code 15: bad back reference at offset 7 "]] , testRegex "(abc\\1)" [ERROR] ["abc"] [Just ["No match: POSIX code 17: match failed"]] , testRegex ")" [] [] [Just ["Failed: unmatched parentheses at offset 0"]] , testRegex "a[]b" [] [] [Just ["Failed: missing terminating ] for character class at offset 4"]] , testRegex "[^aeiou ]{3,}" [ERROR] ["co-processors, and for"] [Just ["Capturing subpattern count = 0"], Just ["Partial matching not supported"], Just ["No options"], Just ["No first char"], Just ["No need char"], Just [" 0: -pr"]] , testRegex "<.*>" [ERROR] ["abcghinop"] [Just ["Capturing subpattern count = 0"], Just ["Partial matching not supported"], Just ["No options"], Just ["First char = '<'"], Just ["Need char = '>'"], Just [" 0: ghi"]] , testRegex "<.*?>" [ERROR] ["abcghinop"] [Just ["Capturing subpattern count = 0"], Just ["Partial matching not supported"], Just ["No options"], Just ["First char = '<'"], Just ["Need char = '>'"], Just [" 0: "]] , testRegex "<.*>" [ERROR] ["abcghinop"] [Just ["Capturing subpattern count = 0"], Just ["Partial matching not supported"], Just ["Options: ungreedy"], Just ["First char = '<'"], Just ["Need char = '>'"], Just [" 0: "]] , testRegex "(?U)<.*>" [ERROR] ["abcghinop"] [Just ["Capturing subpattern count = 0"], Just ["Partial matching not supported"], Just ["Options: ungreedy"], Just ["First char = '<'"], Just ["Need char = '>'"], Just [" 0: "]] , testRegex "<.*?>" [ERROR] ["abcghinop"] [Just ["Capturing subpattern count = 0"], Just ["Partial matching not supported"], Just ["Options: ungreedy"], Just ["First char = '<'"], Just ["Need char = '>'"], Just [" 0: ghi"]] , testRegex "={3,}" [ERROR] ["abc========def"] [Just ["Capturing subpattern count = 0"], Just ["Partial matching not supported"], Just ["Options: ungreedy"], Just ["First char = '='"], Just ["Need char = '='"], Just [" 0: ==="]] , testRegex "(?U)={3,}?" [ERROR] ["abc========def"] [Just ["Capturing subpattern count = 0"], Just ["Partial matching not supported"], Just ["Options: ungreedy"], Just ["First char = '='"], Just ["Need char = '='"], Just [" 0: ========"]] , testRegex "(?^abc)" [ERROR] ["abc", "def\\nabc", "*** Failers", "defabc"] [Just ["Capturing subpattern count = 0"], Just ["Options: multiline"], Just ["First char at start or follows newline"], Just ["Need char = 'c'"], Just [" 0: abc"], Just [" 0: abc"], Nothing, Nothing] , testRegex "(?<=ab(c+)d)ef" [] [] [Just ["Failed: lookbehind assertion is not fixed length at offset 11"]] , testRegex "(?<=ab(?<=c+)d)ef" [] [] [Just ["Failed: lookbehind assertion is not fixed length at offset 12"]] , testRegex "(?<=ab(c|de)f)g" [] [] [Just ["Failed: lookbehind assertion is not fixed length at offset 13"]] , testRegex "The next three are in testinput2 because they have variable length branches" [] [] [] , testRegex "(?<=bullock|donkey)-cart" [ERROR] ["the bullock-cart", "a donkey-cart race", "*** Failers", "cart", "horse-and-cart"] [Just ["Capturing subpattern count = 0"], Just ["No options"], Just ["First char = '-'"], Just ["Need char = 't'"], Just [" 0: -cart"], Just [" 0: -cart"], Nothing, Nothing, Nothing] , testRegex "(?<=ab(?i)x|y|z)" [ERROR] [] [Just ["Capturing subpattern count = 0"], Just ["No options"], Just ["No first char"], Just ["No need char"]] , testRegex "(?>.*)(?<=(abcd)|(xyz))" [ERROR] ["alphabetabcd", "endingxyz"] [Just ["Capturing subpattern count = 2"], Just ["Partial matching not supported"], Just ["No options"], Just ["First char at start or follows newline"], Just ["No need char"], Just [" 0: alphabetabcd"], Just [" 1: abcd"], Just [" 0: endingxyz"], Just [" 1: "], Just [" 2: xyz"]] , testRegex "(?<=ab(?i)x(?-i)y|(?i)z|b)ZZ" [ERROR] ["abxyZZ", "abXyZZ", "ZZZ", "zZZ", "bZZ", "BZZ", "*** Failers", "ZZ", "abXYZZ", "zzz", "bzz"] [Just ["Capturing subpattern count = 0"], Just ["No options"], Just ["First char = 'Z'"], Just ["Need char = 'Z'"], Just [" 0: ZZ"], Just [" 0: ZZ"], Just [" 0: ZZ"], Just [" 0: ZZ"], Just [" 0: ZZ"], Just [" 0: ZZ"], Nothing, Nothing, Nothing, Nothing, Nothing] , testRegex "(?"], Just [" 3: f"], Just [" 1G a (1)"], Just [" 2G (0)"], Just [" 3G f (1)"], Just ["get substring 4 failed -7"], Just [" 0L adef"], Just [" 1L a"], Just [" 2L "], Just [" 3L f"], Just [" 0: bcdef"], Just [" 1: bc"], Just [" 2: bc"], Just [" 3: f"], Just [" 1G bc (2)"], Just [" 2G bc (2)"], Just [" 3G f (1)"], Just ["get substring 4 failed -7"], Just [" 0L bcdef"], Just [" 1L bc"], Just [" 2L bc"], Just [" 3L f"], Just [" 0: adef"], Just [" 1: a"], Just [" 2: "], Just [" 3: f"], Just [" 0C adef (4)"]] , testRegex "^abc\\00def" [ERROR] ["abc\\00def\\L\\C0"] [Just ["Capturing subpattern count = 0"], Just ["Options: anchored"], Just ["No first char"], Just ["No need char"], Just [" 0: abc\\x00def"], Just [" 0C abc (7)"], Just [" 0L abc"]] , testRegex "ERROR" [] [")((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+", ")?)?)?)?)?)?)?)?)?otherword/I"] [Just [")((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+"], Just [")?)?)?)?)?)?)?)?)?otherword/I"], Just ["Capturing subpattern count = 8"], Just ["Partial matching not supported"], Just ["Contains explicit CR or LF match"], Just ["No options"], Just ["First char = 'w'"], Just ["Need char = 'd'"]] , testRegex ".*X" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just ["Capturing subpattern count = 0"], Just ["Partial matching not supported"], Just ["No options"], Just ["First char at start or follows newline"], Just ["Need char = 'X'"]] , testRegex ".*X" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just ["Capturing subpattern count = 0"], Just ["Partial matching not supported"], Just ["Options: anchored dotall"], Just ["No first char"], Just ["Need char = 'X'"]] , testRegex "(.*X|^B)" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just ["Capturing subpattern count = 1"], Just ["Partial matching not supported"], Just ["No options"], Just ["First char at start or follows newline"], Just ["No need char"]] , testRegex "(.*X|^B)" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just ["Capturing subpattern count = 1"], Just ["Partial matching not supported"], Just ["Options: anchored dotall"], Just ["No first char"], Just ["No need char"]] , testRegex "(?s)(.*X|^B)" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just ["Capturing subpattern count = 1"], Just ["Partial matching not supported"], Just ["Options: anchored dotall"], Just ["No first char"], Just ["No need char"]] , testRegex "(?s:.*X|^B)" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just ["Capturing subpattern count = 0"], Just ["Partial matching not supported"], Just ["No options"], Just ["First char at start or follows newline"], Just ["No need char"]] , testRegex "\\Biss\\B" [ERROR] ["Mississippi"] [Just ["Capturing subpattern count = 0"], Just ["No options"], Just ["First char = 'i'"], Just ["Need char = 's'"], Just [" 0: iss"], Just [" 0+ issippi"]] , testRegex "\\Biss\\B" [ERROR] ["Mississippi"] [Just [" 0: iss"], Just [" 0+ issippi"]] , testRegex "iss" [ERROR] ["Mississippi"] [Just ["Capturing subpattern count = 0"], Just ["No options"], Just ["First char = 'i'"], Just ["Need char = 's'"], Just [" 0: iss"], Just [" 0+ issippi"], Just [" 0: iss"], Just [" 0+ ippi"]] , testRegex "\\Biss\\B" [ERROR] ["Mississippi"] [Just ["Capturing subpattern count = 0"], Just ["No options"], Just ["First char = 'i'"], Just ["Need char = 's'"], Just [" 0: iss"], Just [" 0+ issippi"]] , testRegex "\\Biss\\B" [ERROR] ["Mississippi", "*** Failers", "Mississippi\\A"] [Just ["Capturing subpattern count = 0"], Just ["No options"], Just ["First char = 'i'"], Just ["Need char = 's'"], Just [" 0: iss"], Just [" 0+ issippi"], Just [" 0: iss"], Just [" 0+ ippi"], Nothing, Nothing] , testRegex "(?<=[Ms])iss" [ERROR] ["Mississippi"] [Just ["Capturing subpattern count = 0"], Just ["No options"], Just ["First char = 'i'"], Just ["Need char = 's'"], Just [" 0: iss"], Just [" 0+ issippi"], Just [" 0: iss"], Just [" 0+ ippi"]] , testRegex "(?<=[Ms])iss" [ERROR] ["Mississippi"] [Just ["Capturing subpattern count = 0"], Just ["No options"], Just ["First char = 'i'"], Just ["Need char = 's'"], Just [" 0: iss"], Just [" 0+ issippi"]] , testRegex "^iss" [ERROR] ["ississippi"] [Just ["Capturing subpattern count = 0"], Just ["Options: anchored"], Just ["No first char"], Just ["No need char"], Just [" 0: iss"], Just [" 0+ issippi"]] , testRegex ".*iss" [ERROR] ["abciss\\nxyzisspqr"] [Just ["Capturing subpattern count = 0"], Just ["Partial matching not supported"], Just ["No options"], Just ["First char at start or follows newline"], Just ["Need char = 's'"], Just [" 0: abciss"], Just [" 0+ \\x0axyzisspqr"], Just [" 0: xyziss"], Just [" 0+ pqr"]] , testRegex ".i." [ERROR] ["Mississippi", "Mississippi\\A", "Missouri river", "Missouri river\\A"] [Just ["Capturing subpattern count = 0"], Just ["No options"], Just ["No first char"], Just ["Need char = 'i'"], Just [" 0: Mis"], Just [" 0+ sissippi"], Just [" 0: sis"], Just [" 0+ sippi"], Just [" 0: sip"], Just [" 0+ pi"], Just [" 0: Mis"], Just [" 0+ sissippi"], Just [" 0: sis"], Just [" 0+ sippi"], Just [" 0: sip"], Just [" 0+ pi"], Just [" 0: Mis"], Just [" 0+ souri river"], Just [" 0: ri "], Just [" 0+ river"], Just [" 0: riv"], Just [" 0+ er"], Just [" 0: Mis"], Just [" 0+ souri river"]] , testRegex "^.is" [ERROR] ["Mississippi"] [Just ["Capturing subpattern count = 0"], Just ["Options: anchored"], Just ["No first char"], Just ["No need char"], Just [" 0: Mis"], Just [" 0+ sissippi"]] , testRegex "^ab\\n" [ERROR] ["ab\\nab\\ncd"] [Just ["Capturing subpattern count = 0"], Just ["Contains explicit CR or LF match"], Just ["Options: anchored"], Just ["No first char"], Just ["No need char"], Just [" 0: ab\\x0a"], Just [" 0+ ab\\x0acd"]] , testRegex "^ab\\n" [ERROR] ["ab\\nab\\ncd"] [Just ["Capturing subpattern count = 0"], Just ["Contains explicit CR or LF match"], Just ["Options: multiline"], Just ["First char at start or follows newline"], Just ["Need char = 10"], Just [" 0: ab\\x0a"], Just [" 0+ ab\\x0acd"], Just [" 0: ab\\x0a"], Just [" 0+ cd"]] , testRegex "abc" [ERROR] [] [Just ["Capturing subpattern count = 0"], Just ["No options"], Just ["First char = 'a'"], Just ["Need char = 'c'"]] , testRegex "abc|bac" [ERROR] [] [Just ["Capturing subpattern count = 0"], Just ["No options"], Just ["No first char"], Just ["Need char = 'c'"]] , testRegex "(abc|bac)" [ERROR] [] [Just ["Capturing subpattern count = 1"], Just ["No options"], Just ["No first char"], Just ["Need char = 'c'"]] , testRegex "(abc|(c|dc))" [ERROR] [] [Just ["Capturing subpattern count = 2"], Just ["No options"], Just ["No first char"], Just ["Need char = 'c'"]] , testRegex "(abc|(d|de)c)" [ERROR] [] [Just ["Capturing subpattern count = 2"], Just ["No options"], Just ["No first char"], Just ["Need char = 'c'"]] , testRegex "a*" [ERROR] [] [Just ["Capturing subpattern count = 0"], Just ["Partial matching not supported"], Just ["No options"], Just ["No first char"], Just ["No need char"]] , testRegex "a+" [ERROR] [] [Just ["Capturing subpattern count = 0"], Just ["Partial matching not supported"], Just ["No options"], Just ["First char = 'a'"], Just ["No need char"]] , testRegex "(baa|a+)" [ERROR] [] [Just ["Capturing subpattern count = 1"], Just ["Partial matching not supported"], Just ["No options"], Just ["No first char"], Just ["Need char = 'a'"]] , testRegex "a{0,3}" [ERROR] [] [Just ["Capturing subpattern count = 0"], Just ["Partial matching not supported"], Just ["No options"], Just ["No first char"], Just ["No need char"]] , testRegex "baa{3,}" [ERROR] [] [Just ["Capturing subpattern count = 0"], Just ["Partial matching not supported"], Just ["No options"], Just ["First char = 'b'"], Just ["Need char = 'a'"]] , testRegex "\"([^\\\\\"]+|\\\\.)*\"" [ERROR] [] [Just ["Capturing subpattern count = 1"], Just ["Partial matching not supported"], Just ["No options"], Just ["First char = '\"'"], Just ["Need char = '\"'"]] , testRegex "(abc|ab[cd])" [ERROR] [] [Just ["Capturing subpattern count = 1"], Just ["No options"], Just ["First char = 'a'"], Just ["No need char"]] , testRegex "(a|.)" [ERROR] [] [Just ["Capturing subpattern count = 1"], Just ["No options"], Just ["No first char"], Just ["No need char"]] , testRegex "a|ba|\\w" [ERROR] [] [Just ["Capturing subpattern count = 0"], Just ["No options"], Just ["No first char"], Just ["No need char"]] , testRegex "abc(?=pqr)" [ERROR] [] [Just ["Capturing subpattern count = 0"], Just ["No options"], Just ["First char = 'a'"], Just ["Need char = 'r'"]] , testRegex "...(?<=abc)" [ERROR] [] [Just ["Capturing subpattern count = 0"], Just ["No options"], Just ["No first char"], Just ["No need char"]] , testRegex "abc(?!pqr)" [ERROR] [] [Just ["Capturing subpattern count = 0"], Just ["No options"], Just ["First char = 'a'"], Just ["Need char = 'c'"]] , testRegex "ab." [ERROR] [] [Just ["Capturing subpattern count = 0"], Just ["No options"], Just ["First char = 'a'"], Just ["Need char = 'b'"]] , testRegex "ab[xyz]" [ERROR] [] [Just ["Capturing subpattern count = 0"], Just ["No options"], Just ["First char = 'a'"], Just ["Need char = 'b'"]] , testRegex "abc*" [ERROR] [] [Just ["Capturing subpattern count = 0"], Just ["Partial matching not supported"], Just ["No options"], Just ["First char = 'a'"], Just ["Need char = 'b'"]] , testRegex "ab.c*" [ERROR] [] [Just ["Capturing subpattern count = 0"], Just ["Partial matching not supported"], Just ["No options"], Just ["First char = 'a'"], Just ["Need char = 'b'"]] , testRegex "a.c*" [ERROR] [] [Just ["Capturing subpattern count = 0"], Just ["Partial matching not supported"], Just ["No options"], Just ["First char = 'a'"], Just ["No need char"]] , testRegex ".c*" [ERROR] [] [Just ["Capturing subpattern count = 0"], Just ["Partial matching not supported"], Just ["No options"], Just ["No first char"], Just ["No need char"]] , testRegex "ac*" [ERROR] [] [Just ["Capturing subpattern count = 0"], Just ["Partial matching not supported"], Just ["No options"], Just ["First char = 'a'"], Just ["No need char"]] , testRegex "(a.c*|b.c*)" [ERROR] [] [Just ["Capturing subpattern count = 1"], Just ["Partial matching not supported"], Just ["No options"], Just ["No first char"], Just ["No need char"]] , testRegex "a.c*|aba" [ERROR] [] [Just ["Capturing subpattern count = 0"], Just ["Partial matching not supported"], Just ["No options"], Just ["First char = 'a'"], Just ["No need char"]] , testRegex ".+a" [ERROR] [] [Just ["Capturing subpattern count = 0"], Just ["Partial matching not supported"], Just ["No options"], Just ["No first char"], Just ["Need char = 'a'"]] , testRegex "(?=abcda)a.*" [ERROR] [] [Just ["Capturing subpattern count = 0"], Just ["Partial matching not supported"], Just ["No options"], Just ["First char = 'a'"], Just ["Need char = 'a'"]] , testRegex "(?=a)a.*" [ERROR] [] [Just ["Capturing subpattern count = 0"], Just ["Partial matching not supported"], Just ["No options"], Just ["First char = 'a'"], Just ["No need char"]] , testRegex "a(b)*" [ERROR] [] [Just ["Capturing subpattern count = 1"], Just ["No options"], Just ["First char = 'a'"], Just ["No need char"]] , testRegex "a\\d*" [ERROR] [] [Just ["Capturing subpattern count = 0"], Just ["Partial matching not supported"], Just ["No options"], Just ["First char = 'a'"], Just ["No need char"]] , testRegex "ab\\d*" [ERROR] [] [Just ["Capturing subpattern count = 0"], Just ["Partial matching not supported"], Just ["No options"], Just ["First char = 'a'"], Just ["Need char = 'b'"]] , testRegex "a(\\d)*" [ERROR] [] [Just ["Capturing subpattern count = 1"], Just ["No options"], Just ["First char = 'a'"], Just ["No need char"]] , testRegex "abcde{0,0}" [ERROR] [] [Just ["Capturing subpattern count = 0"], Just ["No options"], Just ["First char = 'a'"], Just ["Need char = 'd'"]] , testRegex "ab\\d+" [ERROR] [] [Just ["Capturing subpattern count = 0"], Just ["Partial matching not supported"], Just ["No options"], Just ["First char = 'a'"], Just ["Need char = 'b'"]] , testRegex "a(?(1)b)" [ERROR] [] [Just ["Capturing subpattern count = 0"], Just ["No options"], Just ["First char = 'a'"], Just ["No need char"]] , testRegex "a(?(1)bag|big)" [ERROR] [] [Just ["Capturing subpattern count = 0"], Just ["No options"], Just ["First char = 'a'"], Just ["Need char = 'g'"]] , testRegex "a(?(1)bag|big)*" [ERROR] [] [Just ["Capturing subpattern count = 0"], Just ["No options"], Just ["First char = 'a'"], Just ["No need char"]] , testRegex "a(?(1)bag|big)+" [ERROR] [] [Just ["Capturing subpattern count = 0"], Just ["No options"], Just ["First char = 'a'"], Just ["Need char = 'g'"]] , testRegex "a(?(1)b..|b..)" [ERROR] [] [Just ["Capturing subpattern count = 0"], Just ["No options"], Just ["First char = 'a'"], Just ["Need char = 'b'"]] , testRegex "ab\\d{0}e" [ERROR] [] [Just ["Capturing subpattern count = 0"], Just ["No options"], Just ["First char = 'a'"], Just ["Need char = 'e'"]] , testRegex "a?b?" [ERROR] ["a", "b", "ab", "\\", "*** Failers", "\\N"] [Just ["Capturing subpattern count = 0"], Just ["No options"], Just ["No first char"], Just ["No need char"], Just [" 0: a"], Just [" 0: b"], Just [" 0: ab"], Just [" 0: "], Just [" 0: "], Nothing] , testRegex "|-" [ERROR] ["abcd", "-abc", "\\Nab-c", "*** Failers", "\\Nabc"] [Just ["Capturing subpattern count = 0"], Just ["No options"], Just ["No first char"], Just ["No need char"], Just [" 0: "], Just [" 0: "], Just [" 0: -"], Just [" 0: "], Nothing] , testRegex "a*(b+)(z)(z)" [ERROR] ["aaaabbbbzzzz", "aaaabbbbzzzz\\O0", "aaaabbbbzzzz\\O1", "aaaabbbbzzzz\\O2", "aaaabbbbzzzz\\O3", "aaaabbbbzzzz\\O4", "aaaabbbbzzzz\\O5"] [Just [" 0: aaaabbbbzz"], Just [" 1: bbbb"], Just [" 2: z"], Just [" 3: z"], Just [" 0: aaaabbbbzz"], Just [" 0: aaaabbbbzz"], Just [" 1: bbbb"], Just [" 0: aaaabbbbzz"], Just [" 1: bbbb"], Just [" 2: z"], Just [" 0: aaaabbbbzz"], Just [" 1: bbbb"], Just [" 2: z"], Just [" 3: z"], Just [" 0: aaaabbbbzz"], Just [" 1: bbbb"], Just [" 2: z"], Just [" 3: z"]] , testRegex "^.?abcd" [ERROR] [] [Just ["Capturing subpattern count = 0"], Just ["Options: anchored"], Just ["No first char"], Just ["Need char = 'd'"], Just ["Study returned NULL"]] , testRegex "ERROR" [] ["(?: # Non-capturing bracket", "(?>[^()]+) # Either a sequence of non-brackets (no backtracking)", "| # Or", "(?R) # Recurse - i.e. nested bracketed string", ")* # Zero or more contents", "\\) # Closing )", "/Ix", "(abcd)", "(abcd)xyz", "xyz(abcd)", "(ab(xy)cd)pqr", "(ab(xycd)pqr", "() abc ()", "12(abcde(fsh)xyz(foo(bar))lmno)89", "*** Failers", "abcd", "abcd)", "(abcd"] [Just ["Capturing subpattern count = 0"], Just ["Partial matching not supported"], Just ["Options: extended"], Just ["First char = '('"], Just ["Need char = ')'"], Just [" 0: (abcd)"], Just [" 0: (abcd)"], Just [" 0: (abcd)"], Just [" 0: (ab(xy)cd)"], Just [" 0: (xycd)"], Just [" 0: ()"], Just [" 0: (abcde(fsh)xyz(foo(bar))lmno)"], Nothing, Nothing, Nothing, Nothing] , testRegex "\\( ( (?>[^()]+) | (?R) )* \\) " [ERROR] ["(ab(xy)cd)pqr", "1(abcd)(x(y)z)pqr"] [Just ["Capturing subpattern count = 1"], Just ["Partial matching not supported"], Just ["Options: extended"], Just ["First char = '('"], Just ["Need char = ')'"], Just [" 0: (ab(xy)cd)"], Just [" 1: cd"], Just [" 0: (abcd)"], Just [" 1: abcd"], Just [" 0: (x(y)z)"], Just [" 1: z"]] , testRegex "\\( (?: (?>[^()]+) | (?R) ) \\) " [ERROR] ["(abcd)", "(ab(xy)cd)", "(a(b(c)d)e)", "((ab))", "*** Failers", "()"] [Just ["Capturing subpattern count = 0"], Just ["Partial matching not supported"], Just ["Options: extended"], Just ["First char = '('"], Just ["Need char = ')'"], Just [" 0: (abcd)"], Just [" 0: (xy)"], Just [" 0: (c)"], Just [" 0: ((ab))"], Nothing, Nothing] , testRegex "\\( (?: (?>[^()]+) | (?R) )? \\) " [ERROR] ["()", "12(abcde(fsh)xyz(foo(bar))lmno)89"] [Just ["Capturing subpattern count = 0"], Just ["Partial matching not supported"], Just ["Options: extended"], Just ["First char = '('"], Just ["Need char = ')'"], Just [" 0: ()"], Just [" 0: (fsh)"]] , testRegex "\\( ( (?>[^()]+) | (?R) )* \\) " [ERROR] ["(ab(xy)cd)"] [Just ["Capturing subpattern count = 1"], Just ["Partial matching not supported"], Just ["Options: extended"], Just ["First char = '('"], Just ["Need char = ')'"], Just [" 0: (ab(xy)cd)"], Just [" 1: cd"]] , testRegex "\\( ( ( (?>[^()]+) | (?R) )* ) \\) " [ERROR] ["(ab(xy)cd)"] [Just ["Capturing subpattern count = 2"], Just ["Partial matching not supported"], Just ["Options: extended"], Just ["First char = '('"], Just ["Need char = ')'"], Just [" 0: (ab(xy)cd)"], Just [" 1: ab(xy)cd"], Just [" 2: cd"]] , testRegex "\\( (123)? ( ( (?>[^()]+) | (?R) )* ) \\) " [ERROR] ["(ab(xy)cd)", "(123ab(xy)cd)"] [Just ["Capturing subpattern count = 3"], Just ["Partial matching not supported"], Just ["Options: extended"], Just ["First char = '('"], Just ["Need char = ')'"], Just [" 0: (ab(xy)cd)"], Just [" 1: "], Just [" 2: ab(xy)cd"], Just [" 3: cd"], Just [" 0: (123ab(xy)cd)"], Just [" 1: 123"], Just [" 2: ab(xy)cd"], Just [" 3: cd"]] , testRegex "\\( ( (123)? ( (?>[^()]+) | (?R) )* ) \\) " [ERROR] ["(ab(xy)cd)", "(123ab(xy)cd)"] [Just ["Capturing subpattern count = 3"], Just ["Partial matching not supported"], Just ["Options: extended"], Just ["First char = '('"], Just ["Need char = ')'"], Just [" 0: (ab(xy)cd)"], Just [" 1: ab(xy)cd"], Just [" 2: "], Just [" 3: cd"], Just [" 0: (123ab(xy)cd)"], Just [" 1: 123ab(xy)cd"], Just [" 2: 123"], Just [" 3: cd"]] , testRegex "\\( (((((((((( ( (?>[^()]+) | (?R) )* )))))))))) \\) " [ERROR] ["(ab(xy)cd)"] [Just ["Capturing subpattern count = 11"], Just ["Partial matching not supported"], Just ["Options: extended"], Just ["First char = '('"], Just ["Need char = ')'"], Just [" 0: (ab(xy)cd)"], Just [" 1: ab(xy)cd"], Just [" 2: ab(xy)cd"], Just [" 3: ab(xy)cd"], Just [" 4: ab(xy)cd"], Just [" 5: ab(xy)cd"], Just [" 6: ab(xy)cd"], Just [" 7: ab(xy)cd"], Just [" 8: ab(xy)cd"], Just [" 9: ab(xy)cd"], Just ["10: ab(xy)cd"], Just ["11: cd"]] , testRegex "\\( ( ( (?>[^()<>]+) | ((?>[^()]+)) | (?R) )* ) \\) " [ERROR] ["(abcd(xyz

qrs)123)"] [Just ["Capturing subpattern count = 3"], Just ["Partial matching not supported"], Just ["Options: extended"], Just ["First char = '('"], Just ["Need char = ')'"], Just [" 0: (abcd(xyz

qrs)123)"], Just [" 1: abcd(xyz

qrs)123"], Just [" 2: 123"], Just [" 3: "]] , testRegex "\\( ( ( (?>[^()]+) | ((?R)) )* ) \\) " [ERROR] ["(ab(cd)ef)", "(ab(cd(ef)gh)ij)"] [Just ["Capturing subpattern count = 3"], Just ["Partial matching not supported"], Just ["Options: extended"], Just ["First char = '('"], Just ["Need char = ')'"], Just [" 0: (ab(cd)ef)"], Just [" 1: ab(cd)ef"], Just [" 2: ef"], Just [" 3: (cd)"], Just [" 0: (ab(cd(ef)gh)ij)"], Just [" 1: ab(cd(ef)gh)ij"], Just [" 2: ij"], Just [" 3: (cd(ef)gh)"]] , testRegex "^[[:alnum:]]" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just ["Capturing subpattern count = 0"], Just ["Options: anchored"], Just ["No first char"], Just ["No need char"]] , testRegex "^[[:^alnum:]]" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just ["Capturing subpattern count = 0"], Just ["Options: anchored"], Just ["No first char"], Just ["No need char"]] , testRegex "^[[:alpha:]]" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just ["Capturing subpattern count = 0"], Just ["Options: anchored"], Just ["No first char"], Just ["No need char"]] , testRegex "^[[:^alpha:]]" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just ["Capturing subpattern count = 0"], Just ["Options: anchored"], Just ["No first char"], Just ["No need char"]] , testRegex "[_[:alpha:]]" [ERROR] [] [Just ["Capturing subpattern count = 0"], Just ["No options"], Just ["No first char"], Just ["No need char"], Just ["Starting byte set: A B C D E F G H I J K L M N O P Q R S T U V W X Y Z "]] , testRegex "^[[:ascii:]]" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just ["Capturing subpattern count = 0"], Just ["Options: anchored"], Just ["No first char"], Just ["No need char"]] , testRegex "^[[:^ascii:]]" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just ["Capturing subpattern count = 0"], Just ["Options: anchored"], Just ["No first char"], Just ["No need char"]] , testRegex "^[[:blank:]]" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just ["Capturing subpattern count = 0"], Just ["Options: anchored"], Just ["No first char"], Just ["No need char"]] , testRegex "^[[:^blank:]]" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just ["Capturing subpattern count = 0"], Just ["Options: anchored"], Just ["No first char"], Just ["No need char"]] , testRegex "[\\n\\x0b\\x0c\\x0d[:blank:]]" [ERROR] [] [Just ["Capturing subpattern count = 0"], Just ["Contains explicit CR or LF match"], Just ["No options"], Just ["No first char"], Just ["No need char"], Just ["Starting byte set: \\x09 \\x0a \\x0b \\x0c \\x0d \\x20 "]] , testRegex "^[[:cntrl:]]" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just ["Capturing subpattern count = 0"], Just ["Options: anchored"], Just ["No first char"], Just ["No need char"]] , testRegex "^[[:digit:]]" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just ["Capturing subpattern count = 0"], Just ["Options: anchored"], Just ["No first char"], Just ["No need char"]] , testRegex "^[[:graph:]]" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just ["Capturing subpattern count = 0"], Just ["Options: anchored"], Just ["No first char"], Just ["No need char"]] , testRegex "^[[:lower:]]" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just ["Capturing subpattern count = 0"], Just ["Options: anchored"], Just ["No first char"], Just ["No need char"]] , testRegex "^[[:print:]]" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just ["Capturing subpattern count = 0"], Just ["Options: anchored"], Just ["No first char"], Just ["No need char"]] , testRegex "^[[:punct:]]" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just ["Capturing subpattern count = 0"], Just ["Options: anchored"], Just ["No first char"], Just ["No need char"]] , testRegex "^[[:space:]]" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just ["Capturing subpattern count = 0"], Just ["Options: anchored"], Just ["No first char"], Just ["No need char"]] , testRegex "^[[:upper:]]" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just ["Capturing subpattern count = 0"], Just ["Options: anchored"], Just ["No first char"], Just ["No need char"]] , testRegex "^[[:xdigit:]]" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just ["Capturing subpattern count = 0"], Just ["Options: anchored"], Just ["No first char"], Just ["No need char"]] , testRegex "^[[:word:]]" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just ["Capturing subpattern count = 0"], Just ["Options: anchored"], Just ["No first char"], Just ["No need char"]] , testRegex "^[[:^cntrl:]]" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just ["Capturing subpattern count = 0"], Just ["Options: anchored"], Just ["No first char"], Just ["No need char"]] , testRegex "^[12[:^digit:]]" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just ["Capturing subpattern count = 0"], Just ["Options: anchored"], Just ["No first char"], Just ["No need char"]] , testRegex "^[[:^blank:]]" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just ["Capturing subpattern count = 0"], Just ["Options: anchored"], Just ["No first char"], Just ["No need char"]] , testRegex "[01[:alpha:]%]" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just ["Capturing subpattern count = 0"], Just ["No options"], Just ["No first char"], Just ["No need char"]] , testRegex "[[.ch.]]" [ERROR] [] [Just ["Failed: POSIX collating elements are not supported at offset 1"]] , testRegex "[[=ch=]]" [ERROR] [] [Just ["Failed: POSIX collating elements are not supported at offset 1"]] , testRegex "[[:rhubarb:]]" [ERROR] [] [Just ["Failed: unknown POSIX class name at offset 3"]] , testRegex "[[:upper:]]" [caseless] ["A", "a"] [Just ["Capturing subpattern count = 0"], Just ["Options: caseless"], Just ["No first char"], Just ["No need char"], Just [" 0: A"], Just [" 0: a"]] , testRegex "[[:lower:]]" [caseless] ["A", "a"] [Just ["Capturing subpattern count = 0"], Just ["Options: caseless"], Just ["No first char"], Just ["No need char"], Just [" 0: A"], Just [" 0: a"]] , testRegex "((?-i)[[:lower:]])[[:lower:]]" [caseless] ["ab", "aB", "*** Failers", "Ab", "AB"] [Just ["Capturing subpattern count = 1"], Just ["Options: caseless"], Just ["No first char"], Just ["No need char"], Just [" 0: ab"], Just [" 1: a"], Just [" 0: aB"], Just [" 1: a"], Just [" 0: ai"], Just [" 1: a"], Nothing, Nothing] , testRegex "[\\200-\\110]" [ERROR] [] [Just ["Failed: range out of order in character class at offset 9"]] , testRegex "^(?(0)f|b)oo" [ERROR] [] [Just ["Failed: invalid condition (?(0) at offset 6"]] , testRegex "This one's here because of the large output vector needed" [ERROR] [] [Just ["Capturing subpattern count = 0"], Just ["No options"], Just ["First char = 'T'"], Just ["Need char = 'd'"]] , testRegex "(\\d+(?:\\s|$))(\\d+(?:\\s|$))(\\d+(?:\\s|$))(\\d+(?:\\s|$))(\\d+(?:\\s|$))(\\d+(?:\\s|$))(\\d+(?:\\s|$))(\\d+(?:\\s|$))(\\d+(?:\\s|$))(\\d+(?:\\s|$))(\\d+(?:\\s|$))(\\d+(?:\\s|$))(\\d+(?:\\s|$))(\\d+(?:\\s|$))(\\d+(?:\\s|$))(\\d+(?:\\s|$))(\\d+(?:\\s|$))(\\d+(?:\\s|$))(\\d+(?:\\s|$))(\\d+(?:\\s|$))(\\d+(?:\\s|$))(\\d+(?:\\s|$))(\\d+(?:\\s|$))(\\d+(?:\\s|$))(\\d+(?:\\s|$))(\\d+(?:\\s|$))(\\d+(?:\\s|$))(\\d+(?:\\s|$))(\\d+(?:\\s|$))(\\d+(?:\\s|$))(\\d+(?:\\s|$))(\\d+(?:\\s|$))(\\d+(?:\\s|$))(\\d+(?:\\s|$))(\\d+(?:\\s|$))(\\d+(?:\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\\d+(?:\\s|$))(\\d+(?:\\s|$))(\\d+(?:\\s|$))(\\d+(?:\\s|$))(\\d+(?:\\s|$))(\\d+(?:\\s|$))(\\d+(?:\\s|$))(\\d+(?:\\s|$))(\\d+(?:\\s|$))(\\d+(?:\\s|$))(\\d+(?:\\s|$))(\\d+(?:\\s|$))(\\d+(?:\\s|$))(\\d+(?:\\s|$))(\\w+)\\s+(\\270)" [ERROR] ["\\O900 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 ABC ABC"] [Just ["Capturing subpattern count = 271"], Just ["Max back reference = 270"], Just ["Partial matching not supported"], Just ["No options"], Just ["No first char"], Just ["No need char"], Just [" 0: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 ABC ABC"], Just [" 1: 1 "], Just [" 2: 2 "], Just [" 3: 3 "], Just [" 4: 4 "], Just [" 5: 5 "], Just [" 6: 6 "], Just [" 7: 7 "], Just [" 8: 8 "], Just [" 9: 9 "], Just ["10: 10 "], Just ["11: 11 "], Just ["12: 12 "], Just ["13: 13 "], Just ["14: 14 "], Just ["15: 15 "], Just ["16: 16 "], Just ["17: 17 "], Just ["18: 18 "], Just ["19: 19 "], Just ["20: 20 "], Just ["21: 21 "], Just ["22: 22 "], Just ["23: 23 "], Just ["24: 24 "], Just ["25: 25 "], Just ["26: 26 "], Just ["27: 27 "], Just ["28: 28 "], Just ["29: 29 "], Just ["30: 30 "], Just ["31: 31 "], Just ["32: 32 "], Just ["33: 33 "], Just ["34: 34 "], Just ["35: 35 "], Just ["36: 36 "], Just ["37: 37 "], Just ["38: 38 "], Just ["39: 39 "], Just ["40: 40 "], Just ["41: 41 "], Just ["42: 42 "], Just ["43: 43 "], Just ["44: 44 "], Just ["45: 45 "], Just ["46: 46 "], Just ["47: 47 "], Just ["48: 48 "], Just ["49: 49 "], Just ["50: 50 "], Just ["51: 51 "], Just ["52: 52 "], Just ["53: 53 "], Just ["54: 54 "], Just ["55: 55 "], Just ["56: 56 "], Just ["57: 57 "], Just ["58: 58 "], Just ["59: 59 "], Just ["60: 60 "], Just ["61: 61 "], Just ["62: 62 "], Just ["63: 63 "], Just ["64: 64 "], Just ["65: 65 "], Just ["66: 66 "], Just ["67: 67 "], Just ["68: 68 "], Just ["69: 69 "], Just ["70: 70 "], Just ["71: 71 "], Just ["72: 72 "], Just ["73: 73 "], Just ["74: 74 "], Just ["75: 75 "], Just ["76: 76 "], Just ["77: 77 "], Just ["78: 78 "], Just ["79: 79 "], Just ["80: 80 "], Just ["81: 81 "], Just ["82: 82 "], Just ["83: 83 "], Just ["84: 84 "], Just ["85: 85 "], Just ["86: 86 "], Just ["87: 87 "], Just ["88: 88 "], Just ["89: 89 "], Just ["90: 90 "], Just ["91: 91 "], Just ["92: 92 "], Just ["93: 93 "], Just ["94: 94 "], Just ["95: 95 "], Just ["96: 96 "], Just ["97: 97 "], Just ["98: 98 "], Just ["99: 99 "], Just ["100: 100 "], Just ["101: 101 "], Just ["102: 102 "], Just ["103: 103 "], Just ["104: 104 "], Just ["105: 105 "], Just ["106: 106 "], Just ["107: 107 "], Just ["108: 108 "], Just ["109: 109 "], Just ["110: 110 "], Just ["111: 111 "], Just ["112: 112 "], Just ["113: 113 "], Just ["114: 114 "], Just ["115: 115 "], Just ["116: 116 "], Just ["117: 117 "], Just ["118: 118 "], Just ["119: 119 "], Just ["120: 120 "], Just ["121: 121 "], Just ["122: 122 "], Just ["123: 123 "], Just ["124: 124 "], Just ["125: 125 "], Just ["126: 126 "], Just ["127: 127 "], Just ["128: 128 "], Just ["129: 129 "], Just ["130: 130 "], Just ["131: 131 "], Just ["132: 132 "], Just ["133: 133 "], Just ["134: 134 "], Just ["135: 135 "], Just ["136: 136 "], Just ["137: 137 "], Just ["138: 138 "], Just ["139: 139 "], Just ["140: 140 "], Just ["141: 141 "], Just ["142: 142 "], Just ["143: 143 "], Just ["144: 144 "], Just ["145: 145 "], Just ["146: 146 "], Just ["147: 147 "], Just ["148: 148 "], Just ["149: 149 "], Just ["150: 150 "], Just ["151: 151 "], Just ["152: 152 "], Just ["153: 153 "], Just ["154: 154 "], Just ["155: 155 "], Just ["156: 156 "], Just ["157: 157 "], Just ["158: 158 "], Just ["159: 159 "], Just ["160: 160 "], Just ["161: 161 "], Just ["162: 162 "], Just ["163: 163 "], Just ["164: 164 "], Just ["165: 165 "], Just ["166: 166 "], Just ["167: 167 "], Just ["168: 168 "], Just ["169: 169 "], Just ["170: 170 "], Just ["171: 171 "], Just ["172: 172 "], Just ["173: 173 "], Just ["174: 174 "], Just ["175: 175 "], Just ["176: 176 "], Just ["177: 177 "], Just ["178: 178 "], Just ["179: 179 "], Just ["180: 180 "], Just ["181: 181 "], Just ["182: 182 "], Just ["183: 183 "], Just ["184: 184 "], Just ["185: 185 "], Just ["186: 186 "], Just ["187: 187 "], Just ["188: 188 "], Just ["189: 189 "], Just ["190: 190 "], Just ["191: 191 "], Just ["192: 192 "], Just ["193: 193 "], Just ["194: 194 "], Just ["195: 195 "], Just ["196: 196 "], Just ["197: 197 "], Just ["198: 198 "], Just ["199: 199 "], Just ["200: 200 "], Just ["201: 201 "], Just ["202: 202 "], Just ["203: 203 "], Just ["204: 204 "], Just ["205: 205 "], Just ["206: 206 "], Just ["207: 207 "], Just ["208: 208 "], Just ["209: 209 "], Just ["210: 210 "], Just ["211: 211 "], Just ["212: 212 "], Just ["213: 213 "], Just ["214: 214 "], Just ["215: 215 "], Just ["216: 216 "], Just ["217: 217 "], Just ["218: 218 "], Just ["219: 219 "], Just ["220: 220 "], Just ["221: 221 "], Just ["222: 222 "], Just ["223: 223 "], Just ["224: 224 "], Just ["225: 225 "], Just ["226: 226 "], Just ["227: 227 "], Just ["228: 228 "], Just ["229: 229 "], Just ["230: 230 "], Just ["231: 231 "], Just ["232: 232 "], Just ["233: 233 "], Just ["234: 234 "], Just ["235: 235 "], Just ["236: 236 "], Just ["237: 237 "], Just ["238: 238 "], Just ["239: 239 "], Just ["240: 240 "], Just ["241: 241 "], Just ["242: 242 "], Just ["243: 243 "], Just ["244: 244 "], Just ["245: 245 "], Just ["246: 246 "], Just ["247: 247 "], Just ["248: 248 "], Just ["249: 249 "], Just ["250: 250 "], Just ["251: 251 "], Just ["252: 252 "], Just ["253: 253 "], Just ["254: 254 "], Just ["255: 255 "], Just ["256: 256 "], Just ["257: 257 "], Just ["258: 258 "], Just ["259: 259 "], Just ["260: 260 "], Just ["261: 261 "], Just ["262: 262 "], Just ["263: 263 "], Just ["264: 264 "], Just ["265: 265 "], Just ["266: 266 "], Just ["267: 267 "], Just ["268: 268 "], Just ["269: 269 "], Just ["270: ABC"], Just ["271: ABC"]] , testRegex "This one's here because Perl does this differently and PCRE can't at present" [ERROR] [] [Just ["Capturing subpattern count = 0"], Just ["No options"], Just ["First char = 'T'"], Just ["Need char = 't'"]] , testRegex "(main(O)?)+" [ERROR] ["mainmain", "mainOmain"] [Just ["Capturing subpattern count = 2"], Just ["No options"], Just ["First char = 'm'"], Just ["Need char = 'n'"], Just [" 0: mainmain"], Just [" 1: main"], Just [" 0: mainOmain"], Just [" 1: main"], Just [" 2: O"]] , testRegex "These are all cases where Perl does it differently (nested captures)" [ERROR] [] [Just ["Capturing subpattern count = 1"], Just ["No options"], Just ["First char = 'T'"], Just ["Need char = 's'"]] , testRegex "^(a(b)?)+$" [ERROR] ["aba"] [Just ["Capturing subpattern count = 2"], Just ["Options: anchored"], Just ["No first char"], Just ["No need char"], Just [" 0: aba"], Just [" 1: a"], Just [" 2: b"]] , testRegex "^(aa(bb)?)+$" [ERROR] ["aabbaa"] [Just ["Capturing subpattern count = 2"], Just ["Options: anchored"], Just ["No first char"], Just ["No need char"], Just [" 0: aabbaa"], Just [" 1: aa"], Just [" 2: bb"]] , testRegex "^(aa|aa(bb))+$" [ERROR] ["aabbaa"] [Just ["Capturing subpattern count = 2"], Just ["Options: anchored"], Just ["No first char"], Just ["No need char"], Just [" 0: aabbaa"], Just [" 1: aa"], Just [" 2: bb"]] , testRegex "^(aa(bb)??)+$" [ERROR] ["aabbaa"] [Just ["Capturing subpattern count = 2"], Just ["Options: anchored"], Just ["No first char"], Just ["No need char"], Just [" 0: aabbaa"], Just [" 1: aa"], Just [" 2: bb"]] , testRegex "^(?:aa(bb)?)+$" [ERROR] ["aabbaa"] [Just ["Capturing subpattern count = 1"], Just ["Options: anchored"], Just ["No first char"], Just ["No need char"], Just [" 0: aabbaa"], Just [" 1: bb"]] , testRegex "^(aa(b(b))?)+$" [ERROR] ["aabbaa"] [Just ["Capturing subpattern count = 3"], Just ["Options: anchored"], Just ["No first char"], Just ["No need char"], Just [" 0: aabbaa"], Just [" 1: aa"], Just [" 2: bb"], Just [" 3: b"]] , testRegex "^(?:aa(b(b))?)+$" [ERROR] ["aabbaa"] [Just ["Capturing subpattern count = 2"], Just ["Options: anchored"], Just ["No first char"], Just ["No need char"], Just [" 0: aabbaa"], Just [" 1: bb"], Just [" 2: b"]] , testRegex "^(?:aa(b(?:b))?)+$" [ERROR] ["aabbaa"] [Just ["Capturing subpattern count = 1"], Just ["Options: anchored"], Just ["No first char"], Just ["No need char"], Just [" 0: aabbaa"], Just [" 1: bb"]] , testRegex "^(?:aa(bb(?:b))?)+$" [ERROR] ["aabbbaa"] [Just ["Capturing subpattern count = 1"], Just ["Options: anchored"], Just ["No first char"], Just ["No need char"], Just [" 0: aabbbaa"], Just [" 1: bbb"]] , testRegex "^(?:aa(b(?:bb))?)+$" [ERROR] ["aabbbaa"] [Just ["Capturing subpattern count = 1"], Just ["Options: anchored"], Just ["No first char"], Just ["No need char"], Just [" 0: aabbbaa"], Just [" 1: bbb"]] , testRegex "^(?:aa(?:b(b))?)+$" [ERROR] ["aabbaa"] [Just ["Capturing subpattern count = 1"], Just ["Options: anchored"], Just ["No first char"], Just ["No need char"], Just [" 0: aabbaa"], Just [" 1: b"]] , testRegex "^(?:aa(?:b(bb))?)+$" [ERROR] ["aabbbaa"] [Just ["Capturing subpattern count = 1"], Just ["Options: anchored"], Just ["No first char"], Just ["No need char"], Just [" 0: aabbbaa"], Just [" 1: bb"]] , testRegex "^(aa(b(bb))?)+$" [ERROR] ["aabbbaa"] [Just ["Capturing subpattern count = 3"], Just ["Options: anchored"], Just ["No first char"], Just ["No need char"], Just [" 0: aabbbaa"], Just [" 1: aa"], Just [" 2: bbb"], Just [" 3: bb"]] , testRegex "^(aa(bb(bb))?)+$" [ERROR] ["aabbbbaa"] [Just ["Capturing subpattern count = 3"], Just ["Options: anchored"], Just ["No first char"], Just ["No need char"], Just [" 0: aabbbbaa"], Just [" 1: aa"], Just [" 2: bbbb"], Just [" 3: bb"]] , testRegex "--------------------------------------------------------------------" [ERROR] [] [Just ["Capturing subpattern count = 0"], Just ["No options"], Just ["First char = '-'"], Just ["Need char = '-'"]] , testRegex "#" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just ["Capturing subpattern count = 0"], Just ["Options: extended"], Just ["No first char"], Just ["No need char"]] , testRegex "a#" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just ["Capturing subpattern count = 0"], Just ["Options: extended"], Just ["First char = 'a'"], Just ["No need char"]] , testRegex "[\\s]" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just ["Capturing subpattern count = 0"], Just ["No options"], Just ["No first char"], Just ["No need char"]] , testRegex "[\\S]" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just ["Capturing subpattern count = 0"], Just ["No options"], Just ["No first char"], Just ["No need char"]] , testRegex "a(?i)b" [ERROR] ["ab", "aB", "*** Failers", "AB"] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just ["Capturing subpattern count = 0"], Just ["No options"], Just ["First char = 'a'"], Just ["Need char = 'b' (caseless)"], Just [" 0: ab"], Just [" 0: aB"], Nothing, Nothing] , testRegex "(a(?i)b)" [ERROR] ["ab", "aB", "*** Failers", "AB"] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just ["Capturing subpattern count = 1"], Just ["No options"], Just ["First char = 'a'"], Just ["Need char = 'b' (caseless)"], Just [" 0: ab"], Just [" 1: ab"], Just [" 0: aB"], Just [" 1: aB"], Nothing, Nothing] , testRegex " (?i)abc" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just ["Capturing subpattern count = 0"], Just ["Options: caseless extended"], Just ["First char = 'a' (caseless)"], Just ["Need char = 'c' (caseless)"]] , testRegex "ERROR" [] ["(?i)abc/IxDZ"] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just ["Capturing subpattern count = 0"], Just ["Options: caseless extended"], Just ["First char = 'a' (caseless)"], Just ["Need char = 'c' (caseless)"]] , testRegex "123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just ["Capturing subpattern count = 0"], Just ["No options"], Just ["First char = '1'"], Just ["Need char = '0'"]] , testRegex "\\Q123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just ["Capturing subpattern count = 0"], Just ["No options"], Just ["First char = '1'"], Just ["Need char = '0'"]] , testRegex "\\Q\\E" [ERROR] ["\\"] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just ["Capturing subpattern count = 0"], Just ["No options"], Just ["No first char"], Just ["No need char"], Just [" 0: "]] , testRegex "\\Q\\Ex" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just ["Capturing subpattern count = 0"], Just ["No options"], Just ["First char = 'x'"], Just ["No need char"]] , testRegex " \\Q\\E" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just ["Capturing subpattern count = 0"], Just ["No options"], Just ["First char = ' '"], Just ["No need char"]] , testRegex "a\\Q\\E" [ERROR] ["abc", "bca", "bac"] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just ["Capturing subpattern count = 0"], Just ["No options"], Just ["First char = 'a'"], Just ["No need char"], Just [" 0: a"], Just [" 0: a"], Just [" 0: a"]] , testRegex "a\\Q\\Eb" [ERROR] ["abc"] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just ["Capturing subpattern count = 0"], Just ["No options"], Just ["First char = 'a'"], Just ["Need char = 'b'"], Just [" 0: ab"]] , testRegex "\\Q\\Eabc" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just ["Capturing subpattern count = 0"], Just ["No options"], Just ["First char = 'a'"], Just ["Need char = 'c'"]] , testRegex "x*+\\w" [ERROR] ["*** Failers", "xxxxx"] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just ["Capturing subpattern count = 0"], Just ["Partial matching not supported"], Just ["No options"], Just ["No first char"], Just ["No need char"], Just [" 0: F"], Nothing] , testRegex "x?+" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just ["Capturing subpattern count = 0"], Just ["No options"], Just ["No first char"], Just ["No need char"]] , testRegex "x++" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just ["Capturing subpattern count = 0"], Just ["Partial matching not supported"], Just ["No options"], Just ["First char = 'x'"], Just ["No need char"]] , testRegex "x{1,3}+" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just ["Capturing subpattern count = 0"], Just ["Partial matching not supported"], Just ["No options"], Just ["First char = 'x'"], Just ["No need char"]] , testRegex "(x)*+" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just ["Capturing subpattern count = 1"], Just ["No options"], Just ["No first char"], Just ["No need char"]] , testRegex "^(\\w++|\\s++)*$" [ERROR] ["now is the time for all good men to come to the aid of the party", "*** Failers", "this is not a line with only words and spaces!"] [Just ["Capturing subpattern count = 1"], Just ["Partial matching not supported"], Just ["Options: anchored"], Just ["No first char"], Just ["No need char"], Just [" 0: now is the time for all good men to come to the aid of the party"], Just [" 1: party"], Nothing, Nothing] , testRegex "(\\d++)(\\w)" [ERROR] ["12345a", "*** Failers", "12345+"] [Just ["Capturing subpattern count = 2"], Just ["Partial matching not supported"], Just ["No options"], Just ["No first char"], Just ["No need char"], Just [" 0: 12345a"], Just [" 1: 12345"], Just [" 2: a"], Nothing, Nothing] , testRegex "a++b" [ERROR] ["aaab"] [Just ["Capturing subpattern count = 0"], Just ["Partial matching not supported"], Just ["No options"], Just ["First char = 'a'"], Just ["Need char = 'b'"], Just [" 0: aaab"]] , testRegex "(a++b)" [ERROR] ["aaab"] [Just ["Capturing subpattern count = 1"], Just ["Partial matching not supported"], Just ["No options"], Just ["First char = 'a'"], Just ["Need char = 'b'"], Just [" 0: aaab"], Just [" 1: aaab"]] , testRegex "(a++)b" [ERROR] ["aaab"] [Just ["Capturing subpattern count = 1"], Just ["Partial matching not supported"], Just ["No options"], Just ["First char = 'a'"], Just ["Need char = 'b'"], Just [" 0: aaab"], Just [" 1: aaa"]] , testRegex "([^()]++|\\([^()]*\\))+" [ERROR] ["((abc(ade)ufh()()x"] [Just ["Capturing subpattern count = 1"], Just ["Partial matching not supported"], Just ["No options"], Just ["No first char"], Just ["No need char"], Just [" 0: abc(ade)ufh()()x"], Just [" 1: x"]] , testRegex "\\(([^()]++|\\([^()]+\\))+\\)" [ERROR] ["(abc)", "(abc(def)xyz)", "*** Failers", "((()aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"] [Just ["Capturing subpattern count = 1"], Just ["Partial matching not supported"], Just ["No options"], Just ["First char = '('"], Just ["Need char = ')'"], Just [" 0: (abc)"], Just [" 1: abc"], Just [" 0: (abc(def)xyz)"], Just [" 1: xyz"], Nothing, Nothing] , testRegex "(abc){1,3}+" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just ["Capturing subpattern count = 1"], Just ["No options"], Just ["First char = 'a'"], Just ["Need char = 'c'"]] , testRegex "a+?+" [ERROR] [] [Just ["Failed: nothing to repeat at offset 3"]] , testRegex "a{2,3}?+b" [ERROR] [] [Just ["Failed: nothing to repeat at offset 7"]] , testRegex "(?U)a+?+" [ERROR] [] [Just ["Failed: nothing to repeat at offset 7"]] , testRegex "a{2,3}?+b" [ERROR] [] [Just ["Failed: nothing to repeat at offset 7"]] , testRegex "x(?U)a++b" [ERROR] ["xaaaab"] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just ["Capturing subpattern count = 0"], Just ["Partial matching not supported"], Just ["No options"], Just ["First char = 'x'"], Just ["Need char = 'b'"], Just [" 0: xaaaab"]] , testRegex "(?U)xa++b" [ERROR] ["xaaaab"] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just ["Capturing subpattern count = 0"], Just ["Partial matching not supported"], Just ["Options: ungreedy"], Just ["First char = 'x'"], Just ["Need char = 'b'"], Just [" 0: xaaaab"]] , testRegex "^((a+)(?U)([ab]+)(?-U)([bc]+)(\\w*))" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just ["Capturing subpattern count = 5"], Just ["Partial matching not supported"], Just ["Options: anchored"], Just ["No first char"], Just ["No need char"]] , testRegex "^x(?U)a+b" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just ["Capturing subpattern count = 0"], Just ["Partial matching not supported"], Just ["Options: anchored"], Just ["No first char"], Just ["Need char = 'b'"]] , testRegex "^x(?U)(a+)b" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just ["Capturing subpattern count = 1"], Just ["Partial matching not supported"], Just ["Options: anchored"], Just ["No first char"], Just ["Need char = 'b'"]] , testRegex "[.x.]" [ERROR] [] [Just ["Failed: POSIX collating elements are not supported at offset 0"]] , testRegex "[=x=]" [ERROR] [] [Just ["Failed: POSIX collating elements are not supported at offset 0"]] , testRegex "[:x:]" [ERROR] [] [Just ["Failed: POSIX named classes are supported only within a class at offset 0"]] , testRegex "\\l" [ERROR] [] [Just ["Failed: PCRE does not support \\L, \\l, \\N, \\U, or \\u at offset 1"]] , testRegex "\\L" [ERROR] [] [Just ["Failed: PCRE does not support \\L, \\l, \\N, \\U, or \\u at offset 1"]] , testRegex "\\N{name}" [ERROR] [] [Just ["Failed: PCRE does not support \\L, \\l, \\N, \\U, or \\u at offset 1"]] , testRegex "\\u" [ERROR] [] [Just ["Failed: PCRE does not support \\L, \\l, \\N, \\U, or \\u at offset 1"]] , testRegex "\\U" [ERROR] [] [Just ["Failed: PCRE does not support \\L, \\l, \\N, \\U, or \\u at offset 1"]] , testRegex "[" [ERROR] [] [Just ["Failed: missing terminating ] for character class at offset 1"]] , testRegex "[a-" [ERROR] [] [Just ["Failed: missing terminating ] for character class at offset 3"]] , testRegex "[[:space:]" [ERROR] [] [Just ["Failed: missing terminating ] for character class at offset 10"]] , testRegex "[\\s]" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just ["Capturing subpattern count = 0"], Just ["No options"], Just ["No first char"], Just ["No need char"]] , testRegex "[[:space:]]" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just ["Capturing subpattern count = 0"], Just ["No options"], Just ["No first char"], Just ["No need char"]] , testRegex "[[:space:]abcde]" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just ["Capturing subpattern count = 0"], Just ["No options"], Just ["No first char"], Just ["No need char"]] , testRegex "< (?: (?(R) \\d++ | [^<>]*+) | (?R)) * >" [ERROR] ["<>", "", " hij>", " hij>", "def>", "", "*** Failers", ""], Just [" 0: "], Just [" 0: hij>"], Just [" 0: "], Just [" 0: def>"], Just [" 0: <>"], Nothing, Nothing] , testRegex "ERROR" [] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just ["Capturing subpattern count = 0"], Just ["No options"], Just ["First char = '8'"], Just ["Need char = 'X'"]] , testRegex "ERROR" [] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just ["Capturing subpattern count = 0"], Just ["No options"], Just ["First char = '$'"], Just ["Need char = 'X'"]] , testRegex "(.*)\\d+\\1" [ERROR] [] [Just ["Capturing subpattern count = 1"], Just ["Max back reference = 1"], Just ["Partial matching not supported"], Just ["No options"], Just ["No first char"], Just ["No need char"]] , testRegex "(.*)\\d+" [ERROR] [] [Just ["Capturing subpattern count = 1"], Just ["Partial matching not supported"], Just ["No options"], Just ["First char at start or follows newline"], Just ["No need char"]] , testRegex "(.*)\\d+\\1" [ERROR] [] [Just ["Capturing subpattern count = 1"], Just ["Max back reference = 1"], Just ["Partial matching not supported"], Just ["Options: dotall"], Just ["No first char"], Just ["No need char"]] , testRegex "(.*)\\d+" [ERROR] [] [Just ["Capturing subpattern count = 1"], Just ["Partial matching not supported"], Just ["Options: anchored dotall"], Just ["No first char"], Just ["No need char"]] , testRegex "(.*(xyz))\\d+\\2" [ERROR] [] [Just ["Capturing subpattern count = 2"], Just ["Max back reference = 2"], Just ["Partial matching not supported"], Just ["No options"], Just ["First char at start or follows newline"], Just ["Need char = 'z'"]] , testRegex "((.*))\\d+\\1" [ERROR] ["abc123bc"] [Just ["Capturing subpattern count = 2"], Just ["Max back reference = 1"], Just ["Partial matching not supported"], Just ["No options"], Just ["No first char"], Just ["No need char"], Just [" 0: bc123bc"], Just [" 1: bc"], Just [" 2: bc"]] , testRegex "a[b]" [ERROR] [] [Just ["Capturing subpattern count = 0"], Just ["No options"], Just ["First char = 'a'"], Just ["Need char = 'b'"]] , testRegex "(?=a).*" [ERROR] [] [Just ["Capturing subpattern count = 0"], Just ["Partial matching not supported"], Just ["No options"], Just ["First char = 'a'"], Just ["No need char"]] , testRegex "(?=abc).xyz" [ERROR] [] [Just ["Capturing subpattern count = 0"], Just ["Options: caseless"], Just ["First char = 'a' (caseless)"], Just ["Need char = 'z' (caseless)"]] , testRegex "(?=abc)(?i).xyz" [ERROR] [] [Just ["Capturing subpattern count = 0"], Just ["No options"], Just ["First char = 'a'"], Just ["Need char = 'z' (caseless)"]] , testRegex "(?=a)(?=b)" [ERROR] [] [Just ["Capturing subpattern count = 0"], Just ["No options"], Just ["First char = 'a'"], Just ["No need char"]] , testRegex "(?=.)a" [ERROR] [] [Just ["Capturing subpattern count = 0"], Just ["No options"], Just ["First char = 'a'"], Just ["No need char"]] , testRegex "((?=abcda)a)" [ERROR] [] [Just ["Capturing subpattern count = 1"], Just ["No options"], Just ["First char = 'a'"], Just ["Need char = 'a'"]] , testRegex "((?=abcda)ab)" [ERROR] [] [Just ["Capturing subpattern count = 1"], Just ["No options"], Just ["First char = 'a'"], Just ["Need char = 'b'"]] , testRegex "()a" [ERROR] [] [Just ["Capturing subpattern count = 1"], Just ["No options"], Just ["No first char"], Just ["Need char = 'a'"]] , testRegex "(?(1)ab|ac)" [ERROR] [] [Just ["Capturing subpattern count = 0"], Just ["No options"], Just ["First char = 'a'"], Just ["No need char"]] , testRegex "(?(1)abz|acz)" [ERROR] [] [Just ["Capturing subpattern count = 0"], Just ["No options"], Just ["First char = 'a'"], Just ["Need char = 'z'"]] , testRegex "(?(1)abz)" [ERROR] [] [Just ["Capturing subpattern count = 0"], Just ["No options"], Just ["No first char"], Just ["No need char"]] , testRegex "(?(1)abz)123" [ERROR] [] [Just ["Capturing subpattern count = 0"], Just ["No options"], Just ["No first char"], Just ["Need char = '3'"]] , testRegex "(a)+" [ERROR] [] [Just ["Capturing subpattern count = 1"], Just ["No options"], Just ["First char = 'a'"], Just ["No need char"]] , testRegex "(a){2,3}" [ERROR] [] [Just ["Capturing subpattern count = 1"], Just ["No options"], Just ["First char = 'a'"], Just ["Need char = 'a'"]] , testRegex "(a)*" [ERROR] [] [Just ["Capturing subpattern count = 1"], Just ["No options"], Just ["No first char"], Just ["No need char"]] , testRegex "[a]" [ERROR] [] [Just ["Capturing subpattern count = 0"], Just ["No options"], Just ["First char = 'a'"], Just ["No need char"]] , testRegex "[ab]" [ERROR] [] [Just ["Capturing subpattern count = 0"], Just ["No options"], Just ["No first char"], Just ["No need char"]] , testRegex "[ab]" [ERROR] [] [Just ["Capturing subpattern count = 0"], Just ["No options"], Just ["No first char"], Just ["No need char"], Just ["Starting byte set: a b "]] , testRegex "[^a]" [ERROR] [] [Just ["Capturing subpattern count = 0"], Just ["No options"], Just ["No first char"], Just ["No need char"]] , testRegex "\\d456" [ERROR] [] [Just ["Capturing subpattern count = 0"], Just ["No options"], Just ["No first char"], Just ["Need char = '6'"]] , testRegex "\\d456" [ERROR] [] [Just ["Capturing subpattern count = 0"], Just ["No options"], Just ["No first char"], Just ["Need char = '6'"], Just ["Starting byte set: 0 1 2 3 4 5 6 7 8 9 "]] , testRegex "a^b" [ERROR] [] [Just ["Capturing subpattern count = 0"], Just ["No options"], Just ["First char = 'a'"], Just ["Need char = 'b'"]] , testRegex "^a" [ERROR] ["abcde", "xy\\nabc", "*** Failers", "xyabc"] [Just ["Capturing subpattern count = 0"], Just ["Options: multiline"], Just ["First char at start or follows newline"], Just ["Need char = 'a'"], Just [" 0: a"], Just [" 0: a"], Nothing, Nothing] , testRegex "c|abc" [ERROR] [] [Just ["Capturing subpattern count = 0"], Just ["No options"], Just ["No first char"], Just ["Need char = 'c'"]] , testRegex "(?i)[ab]" [ERROR] [] [Just ["Capturing subpattern count = 0"], Just ["Options: caseless"], Just ["No first char"], Just ["No need char"], Just ["Starting byte set: A B a b "]] , testRegex "[ab](?i)cd" [ERROR] [] [Just ["Capturing subpattern count = 0"], Just ["No options"], Just ["No first char"], Just ["Need char = 'd' (caseless)"], Just ["Starting byte set: a b "]] , testRegex "abc(?C)def" [ERROR] ["abcdef", "1234abcdef", "*** Failers", "abcxyz", "abcxyzf"] [Just ["Capturing subpattern count = 0"], Just ["No options"], Just ["First char = 'a'"], Just ["Need char = 'f'"], Just ["--->abcdef"], Just [" 0: abcdef"], Just ["--->1234abcdef"], Just [" 0: abcdef"], Nothing, Nothing, Just ["--->abcxyzf"], Nothing] , testRegex "abc(?C)de(?C1)f" [ERROR] ["123abcdef"] [Just ["Capturing subpattern count = 0"], Just ["No options"], Just ["First char = 'a'"], Just ["Need char = 'f'"], Just ["--->123abcdef"], Just [" 0: abcdef"]] , testRegex "(?C1)\\dabc(?C2)def" [ERROR] ["1234abcdef", "*** Failers", "abcdef"] [Just ["Capturing subpattern count = 0"], Just ["No options"], Just ["No first char"], Just ["Need char = 'f'"], Just ["--->1234abcdef"], Just [" 0: 4abcdef"], Nothing, Just ["--->abcdef"], Nothing] , testRegex "(?C255)ab" [ERROR] [] [Just ["Capturing subpattern count = 0"], Just ["No options"], Just ["First char = 'a'"], Just ["Need char = 'b'"]] , testRegex "(?C256)ab" [ERROR] [] [Just ["Failed: number after (?C is > 255 at offset 6"]] , testRegex "(?Cab)xx" [ERROR] [] [Just ["Failed: closing ) for (?C expected at offset 3"]] , testRegex "(?C12vr)x" [ERROR] [] [Just ["Failed: closing ) for (?C expected at offset 5"]] , testRegex "abc(?C)def" [ERROR] ["*** Failers", "\\x83\\x0\\x61bcdef"] [Just ["Capturing subpattern count = 0"], Just ["No options"], Just ["First char = 'a'"], Just ["Need char = 'f'"], Nothing, Just ["--->\\x83\\x00abcdef"], Just [" 0: abcdef"]] , testRegex "(abc)(?C)de(?C1)f" [ERROR] ["123abcdef", "123abcdef\\C+", "123abcdef\\C-", "*** Failers", "123abcdef\\C!1"] [Just ["Capturing subpattern count = 1"], Just ["No options"], Just ["First char = 'a'"], Just ["Need char = 'f'"], Just ["--->123abcdef"], Just [" 0: abcdef"], Just [" 1: abc"], Just ["Callout 0: last capture = 1"], Just [" 0: "], Just [" 1: abc"], Just ["--->123abcdef"], Just ["Callout 1: last capture = 1"], Just [" 0: "], Just [" 1: abc"], Just ["--->123abcdef"], Just [" 0: abcdef"], Just [" 1: abc"], Just [" 0: abcdef"], Just [" 1: abc"], Nothing, Just ["--->123abcdef"], Nothing] , testRegex "(?C0)(abc(?C1))*" [ERROR] ["abcabcabc", "abcabc\\C!1!3", "*** Failers", "abcabcabc\\C!1!3"] [Just ["Capturing subpattern count = 1"], Just ["No options"], Just ["No first char"], Just ["No need char"], Just ["--->abcabcabc"], Just [" 0: abcabcabc"], Just [" 1: abc"], Just ["--->abcabc"], Just [" 0: abcabc"], Just [" 1: abc"], Just ["--->*** Failers"], Just [" 0: "], Just ["--->abcabcabc"], Just [" 0: abcabc"], Just [" 1: abc"]] , testRegex "(\\d{3}(?C))*" [ERROR] ["123\\C+", "123456\\C+", "123456789\\C+"] [Just ["Capturing subpattern count = 1"], Just ["Partial matching not supported"], Just ["No options"], Just ["No first char"], Just ["No need char"], Just ["Callout 0: last capture = -1"], Just [" 0: "], Just ["--->123"], Just [" 0: 123"], Just [" 1: 123"], Just ["Callout 0: last capture = -1"], Just [" 0: "], Just ["--->123456"], Just ["Callout 0: last capture = 1"], Just [" 0: "], Just [" 1: 123"], Just ["--->123456"], Just [" 0: 123456"], Just [" 1: 456"], Just ["Callout 0: last capture = -1"], Just [" 0: "], Just ["--->123456789"], Just ["Callout 0: last capture = 1"], Just [" 0: "], Just [" 1: 123"], Just ["--->123456789"], Just ["Callout 0: last capture = 1"], Just [" 0: "], Just [" 1: 456"], Just ["--->123456789"], Just [" 0: 123456789"], Just [" 1: 789"]] , testRegex "((xyz)(?C)p|(?C1)xyzabc)" [ERROR] ["xyzabc\\C+"] [Just ["Capturing subpattern count = 2"], Just ["No options"], Just ["First char = 'x'"], Just ["No need char"], Just ["Callout 0: last capture = 2"], Just [" 0: "], Just [" 1: "], Just [" 2: xyz"], Just ["--->xyzabc"], Just ["Callout 1: last capture = -1"], Just [" 0: "], Just ["--->xyzabc"], Just [" 0: xyzabc"], Just [" 1: xyzabc"]] , testRegex "(X)((xyz)(?C)p|(?C1)xyzabc)" [ERROR] ["Xxyzabc\\C+"] [Just ["Capturing subpattern count = 3"], Just ["No options"], Just ["First char = 'X'"], Just ["Need char = 'x'"], Just ["Callout 0: last capture = 3"], Just [" 0: "], Just [" 1: X"], Just [" 2: "], Just [" 3: xyz"], Just ["--->Xxyzabc"], Just ["Callout 1: last capture = 1"], Just [" 0: "], Just [" 1: X"], Just ["--->Xxyzabc"], Just [" 0: Xxyzabc"], Just [" 1: X"], Just [" 2: xyzabc"]] , testRegex "(?=(abc))(?C)abcdef" [ERROR] ["abcdef\\C+"] [Just ["Capturing subpattern count = 1"], Just ["No options"], Just ["First char = 'a'"], Just ["Need char = 'f'"], Just ["Callout 0: last capture = 1"], Just [" 0: "], Just [" 1: abc"], Just ["--->abcdef"], Just [" 0: abcdef"], Just [" 1: abc"]] , testRegex "(?!(abc)(?C1)d)(?C2)abcxyz" [ERROR] ["abcxyz\\C+"] [Just ["Capturing subpattern count = 1"], Just ["No options"], Just ["First char = 'a'"], Just ["Need char = 'z'"], Just ["Callout 1: last capture = 1"], Just [" 0: "], Just [" 1: abc"], Just ["--->abcxyz"], Just ["Callout 2: last capture = -1"], Just [" 0: "], Just ["--->abcxyz"], Just [" 0: abcxyz"]] , testRegex "(?<=(abc)(?C))xyz" [ERROR] ["abcxyz\\C+"] [Just ["Capturing subpattern count = 1"], Just ["No options"], Just ["First char = 'x'"], Just ["Need char = 'z'"], Just ["Callout 0: last capture = 1"], Just [" 0: "], Just [" 1: abc"], Just ["--->abcxyz"], Just [" 0: xyz"], Just [" 1: abc"]] , testRegex "a(b+)(c*)(?C1)" [ERROR] ["abbbbbccc\\C*1"] [Just ["Capturing subpattern count = 2"], Just ["Partial matching not supported"], Just ["No options"], Just ["First char = 'a'"], Just ["Need char = 'b'"], Just ["--->abbbbbccc"], Just ["Callout data = 1"], Just ["Callout data = 1"], Just ["Callout data = 1"], Just ["Callout data = 1"], Just ["Callout data = 1"], Just ["Callout data = 1"], Just ["Callout data = 1"], Just ["Callout data = 1"], Nothing] , testRegex "a(b+?)(c*?)(?C1)" [ERROR] ["abbbbbccc\\C*1"] [Just ["Capturing subpattern count = 2"], Just ["Partial matching not supported"], Just ["No options"], Just ["First char = 'a'"], Just ["Need char = 'b'"], Just ["--->abbbbbccc"], Just ["Callout data = 1"], Just ["Callout data = 1"], Just ["Callout data = 1"], Just ["Callout data = 1"], Just ["Callout data = 1"], Just ["Callout data = 1"], Just ["Callout data = 1"], Just ["Callout data = 1"], Nothing] , testRegex "(?C)abc" [ERROR] [] [Just ["Capturing subpattern count = 0"], Just ["No options"], Just ["First char = 'a'"], Just ["Need char = 'c'"]] , testRegex "(?C)^abc" [ERROR] [] [Just ["Capturing subpattern count = 0"], Just ["Options: anchored"], Just ["No first char"], Just ["No need char"]] , testRegex "(?C)a|b" [ERROR] [] [Just ["Capturing subpattern count = 0"], Just ["No options"], Just ["No first char"], Just ["No need char"], Just ["Starting byte set: a b "]] , testRegex "(?R)" [ERROR] [] [Just ["Failed: recursive call could loop indefinitely at offset 3"]] , testRegex "(a|(?R))" [ERROR] [] [Just ["Failed: recursive call could loop indefinitely at offset 6"]] , testRegex "(ab|(bc|(de|(?R))))" [ERROR] [] [Just ["Failed: recursive call could loop indefinitely at offset 15"]] , testRegex "x(ab|(bc|(de|(?R))))" [ERROR] ["xab", "xbc", "xde", "xxab", "xxxab", "*** Failers", "xyab"] [Just ["Capturing subpattern count = 3"], Just ["No options"], Just ["First char = 'x'"], Just ["No need char"], Just [" 0: xab"], Just [" 1: ab"], Just [" 0: xbc"], Just [" 1: bc"], Just [" 2: bc"], Just [" 0: xde"], Just [" 1: de"], Just [" 2: de"], Just [" 3: de"], Just [" 0: xxab"], Just [" 1: xab"], Just [" 2: xab"], Just [" 3: xab"], Just [" 0: xxxab"], Just [" 1: xxab"], Just [" 2: xxab"], Just [" 3: xxab"], Nothing, Nothing] , testRegex "(ab|(bc|(de|(?1))))" [ERROR] [] [Just ["Failed: recursive call could loop indefinitely at offset 15"]] , testRegex "x(ab|(bc|(de|(?1)x)x)x)" [ERROR] [] [Just ["Failed: recursive call could loop indefinitely at offset 16"]] , testRegex "^([^()]|\\((?1)*\\))*$" [ERROR] ["abc", "a(b)c", "a(b(c))d", "*** Failers)", "a(b(c)d"] [Just ["Capturing subpattern count = 1"], Just ["Options: anchored"], Just ["No first char"], Just ["No need char"], Just [" 0: abc"], Just [" 1: c"], Just [" 0: a(b)c"], Just [" 1: c"], Just [" 0: a(b(c))d"], Just [" 1: d"], Nothing, Nothing] , testRegex "^>abc>([^()]|\\((?1)*\\))*abc>123abc>1(2)3abc>(1(2)3)abc>123abc>1(2)3abc>(1(2)3)"], Just [" 2: "], Just [" 3: Satan, oscillate my metallic sonatas"], Just [" 4: S"], Just [" 0: A man, a plan, a canal: Panama!"], Just [" 1: "], Just [" 2: "], Just [" 3: A man, a plan, a canal: Panama"], Just [" 4: A"], Just [" 0: Able was I ere I saw Elba."], Just [" 1: "], Just [" 2: "], Just [" 3: Able was I ere I saw Elba"], Just [" 4: A"], Nothing, Nothing] , testRegex "^(\\d+|\\((?1)([+*-])(?1)\\)|-(?1))$" [ERROR] ["12", "(((2+2)*-3)-7)", "-12", "*** Failers", "((2+2)*-3)-7)"] [Just ["Capturing subpattern count = 2"], Just ["Partial matching not supported"], Just ["Options: anchored"], Just ["No first char"], Just ["No need char"], Just [" 0: 12"], Just [" 1: 12"], Just [" 0: (((2+2)*-3)-7)"], Just [" 1: (((2+2)*-3)-7)"], Just [" 2: -"], Just [" 0: -12"], Just [" 1: -12"], Nothing, Nothing] , testRegex "^(x(y|(?1){2})z)" [ERROR] ["xyz", "xxyzxyzz", "*** Failers", "xxyzz", "xxyzxyzxyzz"] [Just ["Capturing subpattern count = 2"], Just ["Options: anchored"], Just ["No first char"], Just ["No need char"], Just [" 0: xyz"], Just [" 1: xyz"], Just [" 2: y"], Just [" 0: xxyzxyzz"], Just [" 1: xxyzxyzz"], Just [" 2: xyzxyz"], Nothing, Nothing, Nothing] , testRegex "((< (?: (?(R) \\d++ | [^<>]*+) | (?2)) * >))" [ERROR] ["<>", "", " hij>", " hij>", "def>", "", "*** Failers", ""], Just [" 1: <>"], Just [" 2: <>"], Just [" 0: "], Just [" 1: "], Just [" 2: "], Just [" 0: hij>"], Just [" 1: hij>"], Just [" 2: hij>"], Just [" 0: "], Just [" 1: "], Just [" 2: "], Just [" 0: def>"], Just [" 1: def>"], Just [" 2: def>"], Just [" 0: <>"], Just [" 1: <>"], Just [" 2: <>"], Nothing, Nothing] , testRegex "(?1)" [ERROR] [] [Just ["Failed: reference to non-existent subpattern at offset 3"]] , testRegex "((?2)(abc)" [ERROR] [] [Just ["Failed: missing ) at offset 10"]] , testRegex "^(abc)def(?1)" [ERROR] ["abcdefabc"] [Just ["Capturing subpattern count = 1"], Just ["Options: anchored"], Just ["No first char"], Just ["No need char"], Just [" 0: abcdefabc"], Just [" 1: abc"]] , testRegex "^(a|b|c)=(?1)+" [ERROR] ["a=a", "a=b", "a=bc"] [Just ["Capturing subpattern count = 1"], Just ["Options: anchored"], Just ["No first char"], Just ["No need char"], Just [" 0: a=a"], Just [" 1: a"], Just [" 0: a=b"], Just [" 1: a"], Just [" 0: a=bc"], Just [" 1: a"]] , testRegex "^(a|b|c)=((?1))+" [ERROR] ["a=a", "a=b", "a=bc"] [Just ["Capturing subpattern count = 2"], Just ["Options: anchored"], Just ["No first char"], Just ["No need char"], Just [" 0: a=a"], Just [" 1: a"], Just [" 2: a"], Just [" 0: a=b"], Just [" 1: a"], Just [" 2: b"], Just [" 0: a=bc"], Just [" 1: a"], Just [" 2: c"]] , testRegex "a(?Pb|c)d(?Pe)" [ERROR] ["abde", "acde"] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just ["Capturing subpattern count = 2"], Just ["Named capturing subpatterns:"], Just ["No options"], Just ["First char = 'a'"], Just ["Need char = 'e'"], Just [" 0: abde"], Just [" 1: b"], Just [" 2: e"], Just [" 0: acde"], Just [" 1: c"], Just [" 2: e"]] , testRegex "(?:a(?Pc(?Pd)))(?Pa)" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just ["Capturing subpattern count = 3"], Just ["Named capturing subpatterns:"], Just ["No options"], Just ["First char = 'a'"], Just ["Need char = 'a'"]] , testRegex "(?Pa)...(?P=a)bbb(?P>a)d" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just ["Capturing subpattern count = 1"], Just ["Max back reference = 1"], Just ["Named capturing subpatterns:"], Just ["No options"], Just ["First char = 'a'"], Just ["Need char = 'd'"]] , testRegex "^\\W*(?:(?P(?P.)\\W*(?P>one)\\W*(?P=two)|)|(?P(?P.)\\W*(?P>three)\\W*(?P=four)|\\W*.\\W*))\\W*$" [caseless] ["1221", "Satan, oscillate my metallic sonatas!", "A man, a plan, a canal: Panama!", "Able was I ere I saw Elba.", "*** Failers", "The quick brown fox"] [Just ["Capturing subpattern count = 4"], Just ["Max back reference = 4"], Just ["Named capturing subpatterns:"], Just ["Partial matching not supported"], Just ["Options: anchored caseless"], Just ["No first char"], Just ["No need char"], Just [" 0: 1221"], Just [" 1: 1221"], Just [" 2: 1"], Just [" 0: Satan, oscillate my metallic sonatas!"], Just [" 1: "], Just [" 2: "], Just [" 3: Satan, oscillate my metallic sonatas"], Just [" 4: S"], Just [" 0: A man, a plan, a canal: Panama!"], Just [" 1: "], Just [" 2: "], Just [" 3: A man, a plan, a canal: Panama"], Just [" 4: A"], Just [" 0: Able was I ere I saw Elba."], Just [" 1: "], Just [" 2: "], Just [" 3: Able was I ere I saw Elba"], Just [" 4: A"], Nothing, Nothing] , testRegex "((?(R)a|b))\\1(?1)?" [ERROR] ["bb", "bbaa"] [Just ["Capturing subpattern count = 1"], Just ["Max back reference = 1"], Just ["No options"], Just ["No first char"], Just ["No need char"], Just [" 0: bb"], Just [" 1: b"], Just [" 0: bba"], Just [" 1: b"]] , testRegex "(.*)a" [ERROR] [] [Just ["Capturing subpattern count = 1"], Just ["Partial matching not supported"], Just ["Options: anchored dotall"], Just ["No first char"], Just ["Need char = 'a'"]] , testRegex "(.*)a\\1" [ERROR] [] [Just ["Capturing subpattern count = 1"], Just ["Max back reference = 1"], Just ["Partial matching not supported"], Just ["Options: dotall"], Just ["No first char"], Just ["Need char = 'a'"]] , testRegex "(.*)a(b)\\2" [ERROR] [] [Just ["Capturing subpattern count = 2"], Just ["Max back reference = 2"], Just ["Partial matching not supported"], Just ["Options: anchored dotall"], Just ["No first char"], Just ["Need char = 'b'"]] , testRegex "((.*)a|(.*)b)z" [ERROR] [] [Just ["Capturing subpattern count = 3"], Just ["Partial matching not supported"], Just ["Options: anchored dotall"], Just ["No first char"], Just ["Need char = 'z'"]] , testRegex "((.*)a|(.*)b)z\\1" [ERROR] [] [Just ["Capturing subpattern count = 3"], Just ["Max back reference = 1"], Just ["Partial matching not supported"], Just ["Options: dotall"], Just ["No first char"], Just ["Need char = 'z'"]] , testRegex "((.*)a|(.*)b)z\\2" [ERROR] [] [Just ["Capturing subpattern count = 3"], Just ["Max back reference = 2"], Just ["Partial matching not supported"], Just ["Options: dotall"], Just ["No first char"], Just ["Need char = 'z'"]] , testRegex "((.*)a|(.*)b)z\\3" [ERROR] [] [Just ["Capturing subpattern count = 3"], Just ["Max back reference = 3"], Just ["Partial matching not supported"], Just ["Options: dotall"], Just ["No first char"], Just ["Need char = 'z'"]] , testRegex "((.*)a|^(.*)b)z\\3" [ERROR] [] [Just ["Capturing subpattern count = 3"], Just ["Max back reference = 3"], Just ["Partial matching not supported"], Just ["Options: anchored dotall"], Just ["No first char"], Just ["Need char = 'z'"]] , testRegex "(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)a" [ERROR] [] [Just ["Capturing subpattern count = 31"], Just ["Partial matching not supported"], Just ["Options: anchored dotall"], Just ["No first char"], Just ["No need char"]] , testRegex "(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)a\\31" [ERROR] [] [Just ["Capturing subpattern count = 31"], Just ["Max back reference = 31"], Just ["Partial matching not supported"], Just ["Options: dotall"], Just ["No first char"], Just ["No need char"]] , testRegex "(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)a\\32" [ERROR] [] [Just ["Capturing subpattern count = 32"], Just ["Max back reference = 32"], Just ["Partial matching not supported"], Just ["Options: dotall"], Just ["No first char"], Just ["No need char"]] , testRegex "(a)(bc)" [ERROR] ["abc"] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just ["Capturing subpattern count = 0"], Just ["Options: no_auto_capture"], Just ["First char = 'a'"], Just ["Need char = 'c'"], Just [" 0: abc"]] , testRegex "(?Pa)(bc)" [ERROR] ["abc"] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just ["Capturing subpattern count = 1"], Just ["Named capturing subpatterns:"], Just ["Options: no_auto_capture"], Just ["First char = 'a'"], Just ["Need char = 'c'"], Just [" 0: abc"], Just [" 1: a"]] , testRegex "(a)(?Pbc)" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just ["Capturing subpattern count = 1"], Just ["Named capturing subpatterns:"], Just ["Options: no_auto_capture"], Just ["First char = 'a'"], Just ["Need char = 'c'"]] , testRegex "(a+)*zz" [ERROR] ["aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaazzbbbbbb\\M", "aaaaaaaaaaaaaz\\M"] [Just ["Capturing subpattern count = 1"], Just ["Partial matching not supported"], Just ["No options"], Just ["No first char"], Just ["Need char = 'z'"], Just ["Minimum match() limit = 8"], Just ["Minimum match() recursion limit = 6"], Just [" 0: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaazz"], Just [" 1: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"], Just ["Minimum match() limit = 32768"], Just ["Minimum match() recursion limit = 42"], Nothing] , testRegex "(aaa(?C1)bbb|ab)" [ERROR] ["aaabbb", "aaabbb\\C*0", "aaabbb\\C*1", "aaabbb\\C*-1"] [Just ["Capturing subpattern count = 1"], Just ["No options"], Just ["First char = 'a'"], Just ["Need char = 'b'"], Just ["--->aaabbb"], Just [" 0: aaabbb"], Just [" 1: aaabbb"], Just ["--->aaabbb"], Just [" 0: aaabbb"], Just [" 1: aaabbb"], Just ["--->aaabbb"], Just ["Callout data = 1"], Just [" 0: ab"], Just [" 1: ab"], Just ["--->aaabbb"], Just ["Callout data = -1"], Nothing] , testRegex "ab(?Pcd)ef(?Pgh)" [ERROR] ["abcdefgh", "abcdefgh\\C1\\Gtwo", "abcdefgh\\Cone\\Ctwo", "abcdefgh\\Cthree"] [Just ["Capturing subpattern count = 2"], Just ["Named capturing subpatterns:"], Just ["No options"], Just ["First char = 'a'"], Just ["Need char = 'h'"], Just [" 0: abcdefgh"], Just [" 1: cd"], Just [" 2: gh"], Just [" 0: abcdefgh"], Just [" 1: cd"], Just [" 2: gh"], Just [" 1C cd (2)"], Just [" 0: abcdefgh"], Just [" 1: cd"], Just [" 2: gh"], Just ["no parentheses with name \"three\""], Just [" 0: abcdefgh"], Just [" 1: cd"], Just [" 2: gh"], Just ["copy substring three failed -7"]] , testRegex "(?P)(?P)" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just ["Capturing subpattern count = 2"], Just ["Named capturing subpatterns:"], Just ["No options"], Just ["No first char"], Just ["No need char"]] , testRegex "(?P)(?P)" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just ["Capturing subpattern count = 2"], Just ["Named capturing subpatterns:"], Just ["No options"], Just ["No first char"], Just ["No need char"]] , testRegex "(?Pzz)(?Paa)" [ERROR] ["zzaa\\CZ", "zzaa\\CA"] [Just ["Capturing subpattern count = 2"], Just ["Named capturing subpatterns:"], Just ["No options"], Just ["First char = 'z'"], Just ["Need char = 'a'"], Just [" 0: zzaa"], Just [" 1: zz"], Just [" 2: aa"], Just [" 0: zzaa"], Just [" 1: zz"], Just [" 2: aa"]] , testRegex "(?Peks)(?Peccs)" [ERROR] [] [Just ["Failed: two named subpatterns have the same name at offset 15"]] , testRegex "(?Pabc(?Pdef)(?Pxyz))" [ERROR] [] [Just ["Failed: two named subpatterns have the same name at offset 30"]] , testRegex "\\[((?P\\d+)(,(?P>elem))*)\\]" [ERROR] ["[10,20,30,5,5,4,4,2,43,23,4234]", "*** Failers", "[]"] [Just ["Capturing subpattern count = 3"], Just ["Named capturing subpatterns:"], Just ["Partial matching not supported"], Just ["No options"], Just ["First char = '['"], Just ["Need char = ']'"], Just [" 0: [10,20,30,5,5,4,4,2,43,23,4234]"], Just [" 1: 10,20,30,5,5,4,4,2,43,23,4234"], Just [" 2: 10"], Just [" 3: ,4234"], Nothing, Nothing] , testRegex "\\[((?P\\d+)(,(?P>elem))*)?\\]" [ERROR] ["[10,20,30,5,5,4,4,2,43,23,4234]", "[]"] [Just ["Capturing subpattern count = 3"], Just ["Named capturing subpatterns:"], Just ["Partial matching not supported"], Just ["No options"], Just ["First char = '['"], Just ["Need char = ']'"], Just [" 0: [10,20,30,5,5,4,4,2,43,23,4234]"], Just [" 1: 10,20,30,5,5,4,4,2,43,23,4234"], Just [" 2: 10"], Just [" 3: ,4234"], Just [" 0: []"]] , testRegex "(a(b(?2)c))?" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just ["Capturing subpattern count = 2"], Just ["No options"], Just ["No first char"], Just ["No need char"]] , testRegex "(a(b(?2)c))*" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just ["Capturing subpattern count = 2"], Just ["No options"], Just ["No first char"], Just ["No need char"]] , testRegex "(a(b(?2)c)){0,2}" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just ["Capturing subpattern count = 2"], Just ["No options"], Just ["No first char"], Just ["No need char"]] , testRegex "[ab]{1}+" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just ["Capturing subpattern count = 0"], Just ["No options"], Just ["No first char"], Just ["No need char"]] , testRegex "((w\\/|-|with)*(free|immediate)*.*?shipping\\s*[!.-]*)" [caseless] ["Baby Bjorn Active Carrier - With free SHIPPING!!"] [Just ["Capturing subpattern count = 3"], Just ["Partial matching not supported"], Just ["Options: caseless"], Just ["No first char"], Just ["Need char = 'g' (caseless)"], Just [" 0: Baby Bjorn Active Carrier - With free SHIPPING!!"], Just [" 1: Baby Bjorn Active Carrier - With free SHIPPING!!"]] , testRegex "((w\\/|-|with)*(free|immediate)*.*?shipping\\s*[!.-]*)" [ERROR] ["Baby Bjorn Active Carrier - With free SHIPPING!!"] [Just ["Capturing subpattern count = 3"], Just ["Partial matching not supported"], Just ["Options: caseless"], Just ["No first char"], Just ["Need char = 'g' (caseless)"], Just ["Study returned NULL"], Just [" 0: Baby Bjorn Active Carrier - With free SHIPPING!!"], Just [" 1: Baby Bjorn Active Carrier - With free SHIPPING!!"]] , testRegex "a*.*b" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just ["Capturing subpattern count = 0"], Just ["Partial matching not supported"], Just ["No options"], Just ["No first char"], Just ["Need char = 'b'"], Just ["Study returned NULL"]] , testRegex "(a|b)*.?c" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just ["Capturing subpattern count = 1"], Just ["No options"], Just ["No first char"], Just ["Need char = 'c'"], Just ["Study returned NULL"]] , testRegex "abc(?C255)de(?C)f" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just ["Capturing subpattern count = 0"], Just ["No options"], Just ["First char = 'a'"], Just ["Need char = 'f'"]] , testRegex "abcde" [ERROR] ["abcde", "abcdfe"] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just ["Capturing subpattern count = 0"], Just ["Options:"], Just ["First char = 'a'"], Just ["Need char = 'e'"], Just ["--->abcde"], Just [" +0 ^ a"], Just [" +1 ^^ b"], Just [" +2 ^ ^ c"], Just [" +3 ^ ^ d"], Just [" +4 ^ ^ e"], Just [" +5 ^ ^ "], Just [" 0: abcde"], Just ["--->abcdfe"], Just [" +0 ^ a"], Just [" +1 ^^ b"], Just [" +2 ^ ^ c"], Just [" +3 ^ ^ d"], Just [" +4 ^ ^ e"], Nothing] , testRegex "a*b" [ERROR] ["ab", "aaaab", "aaaacb"] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just ["Capturing subpattern count = 0"], Just ["Partial matching not supported"], Just ["Options:"], Just ["No first char"], Just ["Need char = 'b'"], Just ["--->ab"], Just [" +0 ^ a*"], Just [" +2 ^^ b"], Just [" +3 ^ ^ "], Just [" 0: ab"], Just ["--->aaaab"], Just [" +0 ^ a*"], Just [" +2 ^ ^ b"], Just [" +3 ^ ^ "], Just [" 0: aaaab"], Just ["--->aaaacb"], Just [" +0 ^ a*"], Just [" +2 ^ ^ b"], Just [" +0 ^ a*"], Just [" +2 ^ ^ b"], Just [" +0 ^ a*"], Just [" +2 ^ ^ b"], Just [" +0 ^ a*"], Just [" +2 ^^ b"], Just [" +0 ^ a*"], Just [" +2 ^ b"], Just [" +0 ^ a*"], Just [" +2 ^ b"], Just [" +3 ^^ "], Just [" 0: b"]] , testRegex "a+b" [ERROR] ["ab", "aaaab", "aaaacb"] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just ["Capturing subpattern count = 0"], Just ["Partial matching not supported"], Just ["Options:"], Just ["First char = 'a'"], Just ["Need char = 'b'"], Just ["--->ab"], Just [" +0 ^ a+"], Just [" +2 ^^ b"], Just [" +3 ^ ^ "], Just [" 0: ab"], Just ["--->aaaab"], Just [" +0 ^ a+"], Just [" +2 ^ ^ b"], Just [" +3 ^ ^ "], Just [" 0: aaaab"], Just ["--->aaaacb"], Just [" +0 ^ a+"], Just [" +2 ^ ^ b"], Just [" +0 ^ a+"], Just [" +2 ^ ^ b"], Just [" +0 ^ a+"], Just [" +2 ^ ^ b"], Just [" +0 ^ a+"], Just [" +2 ^^ b"], Nothing] , testRegex "(abc|def)x" [ERROR] ["abcx", "defx", "abcdefzx"] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just ["Capturing subpattern count = 1"], Just ["Options:"], Just ["No first char"], Just ["Need char = 'x'"], Just ["--->abcx"], Just [" +0 ^ (abc|def)"], Just [" +1 ^ a"], Just [" +2 ^^ b"], Just [" +3 ^ ^ c"], Just [" +4 ^ ^ |"], Just [" +9 ^ ^ x"], Just ["+10 ^ ^ "], Just [" 0: abcx"], Just [" 1: abc"], Just ["--->defx"], Just [" +0 ^ (abc|def)"], Just [" +1 ^ a"], Just [" +5 ^ d"], Just [" +6 ^^ e"], Just [" +7 ^ ^ f"], Just [" +8 ^ ^ )"], Just [" +9 ^ ^ x"], Just ["+10 ^ ^ "], Just [" 0: defx"], Just [" 1: def"], Just ["--->abcdefzx"], Just [" +0 ^ (abc|def)"], Just [" +1 ^ a"], Just [" +2 ^^ b"], Just [" +3 ^ ^ c"], Just [" +4 ^ ^ |"], Just [" +9 ^ ^ x"], Just [" +5 ^ d"], Just [" +0 ^ (abc|def)"], Just [" +1 ^ a"], Just [" +5 ^ d"], Just [" +0 ^ (abc|def)"], Just [" +1 ^ a"], Just [" +5 ^ d"], Just [" +0 ^ (abc|def)"], Just [" +1 ^ a"], Just [" +5 ^ d"], Just [" +6 ^^ e"], Just [" +7 ^ ^ f"], Just [" +8 ^ ^ )"], Just [" +9 ^ ^ x"], Just [" +0 ^ (abc|def)"], Just [" +1 ^ a"], Just [" +5 ^ d"], Just [" +0 ^ (abc|def)"], Just [" +1 ^ a"], Just [" +5 ^ d"], Just [" +0 ^ (abc|def)"], Just [" +1 ^ a"], Just [" +5 ^ d"], Just [" +0 ^ (abc|def)"], Just [" +1 ^ a"], Just [" +5 ^ d"], Nothing] , testRegex "(ab|cd){3,4}" [ERROR] ["ababab", "abcdabcd", "abcdcdcdcdcd"] [Just ["Capturing subpattern count = 1"], Just ["Options:"], Just ["No first char"], Just ["No need char"], Just ["--->ababab"], Just [" +0 ^ (ab|cd){3,4}"], Just [" +1 ^ a"], Just [" +2 ^^ b"], Just [" +3 ^ ^ |"], Just [" +1 ^ ^ a"], Just [" +2 ^ ^ b"], Just [" +3 ^ ^ |"], Just [" +1 ^ ^ a"], Just [" +2 ^ ^ b"], Just [" +3 ^ ^ |"], Just [" +1 ^ ^ a"], Just [" +4 ^ ^ c"], Just ["+12 ^ ^ "], Just [" 0: ababab"], Just [" 1: ab"], Just ["--->abcdabcd"], Just [" +0 ^ (ab|cd){3,4}"], Just [" +1 ^ a"], Just [" +2 ^^ b"], Just [" +3 ^ ^ |"], Just [" +1 ^ ^ a"], Just [" +4 ^ ^ c"], Just [" +5 ^ ^ d"], Just [" +6 ^ ^ )"], Just [" +1 ^ ^ a"], Just [" +2 ^ ^ b"], Just [" +3 ^ ^ |"], Just [" +1 ^ ^ a"], Just [" +4 ^ ^ c"], Just [" +5 ^ ^ d"], Just [" +6 ^ ^ )"], Just ["+12 ^ ^ "], Just [" 0: abcdabcd"], Just [" 1: cd"], Just ["--->abcdcdcdcdcd"], Just [" +0 ^ (ab|cd){3,4}"], Just [" +1 ^ a"], Just [" +2 ^^ b"], Just [" +3 ^ ^ |"], Just [" +1 ^ ^ a"], Just [" +4 ^ ^ c"], Just [" +5 ^ ^ d"], Just [" +6 ^ ^ )"], Just [" +1 ^ ^ a"], Just [" +4 ^ ^ c"], Just [" +5 ^ ^ d"], Just [" +6 ^ ^ )"], Just [" +1 ^ ^ a"], Just [" +4 ^ ^ c"], Just [" +5 ^ ^ d"], Just [" +6 ^ ^ )"], Just ["+12 ^ ^ "], Just [" 0: abcdcdcd"], Just [" 1: cd"]] , testRegex "([ab]{,4}c|xy)" [ERROR] ["Note: that { does NOT introduce a quantifier"] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just ["Capturing subpattern count = 1"], Just ["Options:"], Just ["No first char"], Just ["No need char"], Just ["--->Note: that { does NOT introduce a quantifier"], Just [" +0 ^ ([ab]{,4}c|xy)"], Just [" +1 ^ [ab]"], Just ["+11 ^ x"], Just [" +0 ^ ([ab]{,4}c|xy)"], Just [" +1 ^ [ab]"], Just ["+11 ^ x"], Just [" +0 ^ ([ab]{,4}c|xy)"], Just [" +1 ^ [ab]"], Just ["+11 ^ x"], Just [" +0 ^ ([ab]{,4}c|xy)"], Just [" +1 ^ [ab]"], Just ["+11 ^ x"], Just [" +0 ^ ([ab]{,4}c|xy)"], Just [" +1 ^ [ab]"], Just ["+11 ^ x"], Just [" +0 ^ ([ab]{,4}c|xy)"], Just [" +1 ^ [ab]"], Just ["+11 ^ x"], Just [" +0 ^ ([ab]{,4}c|xy)"], Just [" +1 ^ [ab]"], Just ["+11 ^ x"], Just [" +0 ^ ([ab]{,4}c|xy)"], Just [" +1 ^ [ab]"], Just ["+11 ^ x"], Just [" +0 ^ ([ab]{,4}c|xy)"], Just [" +1 ^ [ab]"], Just [" +5 ^^ {"], Just ["+11 ^ x"], Just [" +0 ^ ([ab]{,4}c|xy)"], Just [" +1 ^ [ab]"], Just ["+11 ^ x"], Just [" +0 ^ ([ab]{,4}c|xy)"], Just [" +1 ^ [ab]"], Just ["+11 ^ x"], Just [" +0 ^ ([ab]{,4}c|xy)"], Just [" +1 ^ [ab]"], Just ["+11 ^ x"], Just [" +0 ^ ([ab]{,4}c|xy)"], Just [" +1 ^ [ab]"], Just ["+11 ^ x"], Just [" +0 ^ ([ab]{,4}c|xy)"], Just [" +1 ^ [ab]"], Just ["+11 ^ x"], Just [" +0 ^ ([ab]{,4}c|xy)"], Just [" +1 ^ [ab]"], Just ["+11 ^ x"], Just [" +0 ^ ([ab]{,4}c|xy)"], Just [" +1 ^ [ab]"], Just ["+11 ^ x"], Just [" +0 ^ ([ab]{,4}c|xy)"], Just [" +1 ^ [ab]"], Just ["+11 ^ x"], Just [" +0 ^ ([ab]{,4}c|xy)"], Just [" +1 ^ [ab]"], Just ["+11 ^ x"], Just [" +0 ^ ([ab]{,4}c|xy)"], Just [" +1 ^ [ab]"], Just ["+11 ^ x"], Just [" +0 ^ ([ab]{,4}c|xy)"], Just [" +1 ^ [ab]"], Just ["+11 ^ x"], Just [" +0 ^ ([ab]{,4}c|xy)"], Just [" +1 ^ [ab]"], Just ["+11 ^ x"], Just [" +0 ^ ([ab]{,4}c|xy)"], Just [" +1 ^ [ab]"], Just ["+11 ^ x"], Just [" +0 ^ ([ab]{,4}c|xy)"], Just [" +1 ^ [ab]"], Just ["+11 ^ x"], Just [" +0 ^ ([ab]{,4}c|xy)"], Just [" +1 ^ [ab]"], Just ["+11 ^ x"], Just [" +0 ^ ([ab]{,4}c|xy)"], Just [" +1 ^ [ab]"], Just ["+11 ^ x"], Just [" +0 ^ ([ab]{,4}c|xy)"], Just [" +1 ^ [ab]"], Just ["+11 ^ x"], Just [" +0 ^ ([ab]{,4}c|xy)"], Just [" +1 ^ [ab]"], Just ["+11 ^ x"], Just [" +0 ^ ([ab]{,4}c|xy)"], Just [" +1 ^ [ab]"], Just ["+11 ^ x"], Just [" +0 ^ ([ab]{,4}c|xy)"], Just [" +1 ^ [ab]"], Just ["+11 ^ x"], Just [" +0 ^ ([ab]{,4}c|xy)"], Just [" +1 ^ [ab]"], Just ["+11 ^ x"], Just [" +0 ^ ([ab]{,4}c|xy)"], Just [" +1 ^ [ab]"], Just ["+11 ^ x"], Just [" +0 ^ ([ab]{,4}c|xy)"], Just [" +1 ^ [ab]"], Just ["+11 ^ x"], Just [" +0 ^ ([ab]{,4}c|xy)"], Just [" +1 ^ [ab]"], Just [" +5 ^^ {"], Just ["+11 ^ x"], Just [" +0 ^ ([ab]{,4}c|xy)"], Just [" +1 ^ [ab]"], Just ["+11 ^ x"], Just [" +0 ^ ([ab]{,4}c|xy)"], Just [" +1 ^ [ab]"], Just ["+11 ^ x"], Just [" +0 ^ ([ab]{,4}c|xy)"], Just [" +1 ^ [ab]"], Just ["+11 ^ x"], Just [" +0 ^ ([ab]{,4}c|xy)"], Just [" +1 ^ [ab]"], Just [" +5 ^^ {"], Just ["+11 ^ x"], Just [" +0 ^ ([ab]{,4}c|xy)"], Just [" +1 ^ [ab]"], Just ["+11 ^ x"], Just [" +0 ^ ([ab]{,4}c|xy)"], Just [" +1 ^ [ab]"], Just ["+11 ^ x"], Just [" +0 ^ ([ab]{,4}c|xy)"], Just [" +1 ^ [ab]"], Just ["+11 ^ x"], Just [" +0 ^ ([ab]{,4}c|xy)"], Just [" +1 ^ [ab]"], Just ["+11 ^ x"], Just [" +0 ^ ([ab]{,4}c|xy)"], Just [" +1 ^ [ab]"], Just ["+11 ^ x"], Just [" +0 ^ ([ab]{,4}c|xy)"], Just [" +1 ^ [ab]"], Just ["+11 ^ x"], Just [" +0 ^ ([ab]{,4}c|xy)"], Just [" +1 ^ [ab]"], Just ["+11 ^ x"], Just [" +0 ^ ([ab]{,4}c|xy)"], Just [" +1 ^ [ab]"], Just ["+11 ^ x"], Nothing] , testRegex "([ab]{1,4}c|xy){4,5}?123" [ERROR] ["aacaacaacaacaac123"] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just ["Capturing subpattern count = 1"], Just ["Partial matching not supported"], Just ["Options:"], Just ["No first char"], Just ["Need char = '3'"], Just ["--->aacaacaacaacaac123"], Just [" +0 ^ ([ab]{1,4}c|xy){4,5}?"], Just [" +1 ^ [ab]{1,4}"], Just ["+10 ^ ^ c"], Just ["+11 ^ ^ |"], Just [" +1 ^ ^ [ab]{1,4}"], Just ["+10 ^ ^ c"], Just ["+11 ^ ^ |"], Just [" +1 ^ ^ [ab]{1,4}"], Just ["+10 ^ ^ c"], Just ["+11 ^ ^ |"], Just [" +1 ^ ^ [ab]{1,4}"], Just ["+10 ^ ^ c"], Just ["+11 ^ ^ |"], Just ["+21 ^ ^ 1"], Just [" +1 ^ ^ [ab]{1,4}"], Just ["+10 ^ ^ c"], Just ["+11 ^ ^ |"], Just ["+21 ^ ^ 1"], Just ["+22 ^ ^ 2"], Just ["+23 ^ ^ 3"], Just ["+24 ^ ^ "], Just [" 0: aacaacaacaacaac123"], Just [" 1: aac"]] , testRegex "\\b.*" [ERROR] ["ab cd\\>1"] [Just ["Capturing subpattern count = 0"], Just ["Partial matching not supported"], Just ["No options"], Just ["No first char"], Just ["No need char"], Just [" 0: cd"]] , testRegex "\\b.*" [ERROR] ["ab cd\\>1"] [Just ["Capturing subpattern count = 0"], Just ["Partial matching not supported"], Just ["Options: dotall"], Just ["No first char"], Just ["No need char"], Just [" 0: cd"]] , testRegex "(?!.bcd).*" [ERROR] ["Xbcd12345"] [Just ["Capturing subpattern count = 0"], Just ["Partial matching not supported"], Just ["No options"], Just ["No first char"], Just ["No need char"], Just [" 0: bcd12345"]] , testRegex "abcde" [ERROR] ["ab\\P", "abc\\P", "abcd\\P", "abcde\\P", "the quick brown abc\\P", "** Failers\\P", "the quick brown abxyz fox\\P"] [Just ["Capturing subpattern count = 0"], Just ["No options"], Just ["First char = 'a'"], Just ["Need char = 'e'"], Just ["Partial match"], Just ["Partial match"], Just ["Partial match"], Just [" 0: abcde"], Just ["Partial match"], Nothing, Nothing] , testRegex "^(0?[1-9]|[12][0-9]|3[01])/(0?[1-9]|1[012])/(20)?\\d\\d$" [ERROR] ["13/05/04\\P", "13/5/2004\\P", "02/05/09\\P", "1\\P", "1/2\\P", "1/2/0\\P", "1/2/04\\P", "0\\P", "02/\\P", "02/0\\P", "02/1\\P", "** Failers\\P", "\\P", "123\\P", "33/4/04\\P", "3/13/04\\P", "0/1/2003\\P", "0/\\P", "02/0/\\P", "02/13\\P"] [Just ["Capturing subpattern count = 3"], Just ["Options: anchored"], Just ["No first char"], Just ["Need char = '/'"], Just [" 0: 13/05/04"], Just [" 1: 13"], Just [" 2: 05"], Just [" 0: 13/5/2004"], Just [" 1: 13"], Just [" 2: 5"], Just [" 3: 20"], Just [" 0: 02/05/09"], Just [" 1: 02"], Just [" 2: 05"], Just ["Partial match"], Just ["Partial match"], Just ["Partial match"], Just [" 0: 1/2/04"], Just [" 1: 1"], Just [" 2: 2"], Just ["Partial match"], Just ["Partial match"], Just ["Partial match"], Just ["Partial match"], Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing] , testRegex "0{0,2}ABC" [ERROR] [] [Just ["Capturing subpattern count = 0"], Just ["Partial matching not supported"], Just ["No options"], Just ["No first char"], Just ["Need char = 'C'"]] , testRegex "\\d{3,}ABC" [ERROR] [] [Just ["Capturing subpattern count = 0"], Just ["Partial matching not supported"], Just ["No options"], Just ["No first char"], Just ["Need char = 'C'"]] , testRegex "\\d*ABC" [ERROR] [] [Just ["Capturing subpattern count = 0"], Just ["Partial matching not supported"], Just ["No options"], Just ["No first char"], Just ["Need char = 'C'"]] , testRegex "[abc]+DE" [ERROR] [] [Just ["Capturing subpattern count = 0"], Just ["Partial matching not supported"], Just ["No options"], Just ["No first char"], Just ["Need char = 'E'"]] , testRegex "[abc]?123" [ERROR] ["123\\P", "a\\P", "b\\P", "c\\P", "c12\\P", "c123\\P"] [Just ["Capturing subpattern count = 0"], Just ["No options"], Just ["No first char"], Just ["Need char = '3'"], Just [" 0: 123"], Just ["Partial match"], Just ["Partial match"], Just ["Partial match"], Just ["Partial match"], Just [" 0: c123"]] , testRegex "^(?:\\d){3,5}X" [ERROR] ["1\\P", "123\\P", "123X", "1234\\P", "1234X", "12345\\P", "12345X", "*** Failers", "1X", "123456\\P"] [Just ["Capturing subpattern count = 0"], Just ["Options: anchored"], Just ["No first char"], Just ["Need char = 'X'"], Just ["Partial match"], Just ["Partial match"], Just [" 0: 123X"], Just ["Partial match"], Just [" 0: 1234X"], Just ["Partial match"], Just [" 0: 12345X"], Nothing, Nothing, Nothing] , testRegex "abc" [ERROR] ["\\n\\n\\nPartner der LCO\\nde\\nPartner der LINEAS Consulting\\nGmbH\\nLINEAS Consulting GmbH Hamburg\\nPartnerfirmen\\n30 days\\nindex,follow\\n\\nja\\n3\\nPartner\\n\\n\\nLCO\\nLINEAS Consulting\\n15.10.2003\\n\\n\\n\\n\\nDie Partnerfirmen der LINEAS Consulting\\nGmbH\\n\\n\\n \\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n"] [Just ["Capturing subpattern count = 3"], Just ["Max back reference = 1"], Just ["Partial matching not supported"], Just ["Options: multiline dotall"], Just ["First char = '<'"], Just ["Need char = '>'"], Just [" 0: \\x0a\\x0aPartner der LCO\\x0ade\\x0aPartner der LINEAS Consulting\\x0aGmbH\\x0aLINEAS Consulting GmbH Hamburg\\x0aPartnerfirmen\\x0a30 days\\x0aindex,follow\\x0a\\x0aja\\x0a3\\x0aPartner\\x0a\\x0a\\x0aLCO\\x0aLINEAS Consulting\\x0a15.10.2003\\x0a\\x0a\\x0a\\x0a\\x0aDie Partnerfirmen der LINEAS Consulting\\x0aGmbH\\x0a\\x0a\\x0a \\x0a\\x0a\\x0a\\x0a\\x0a\\x0a\\x0a\\x0a\\x0a\\x0a\\x0a\\x0a\\x0a\\x0a\\x0a\\x0a\\x0a\\x0a\\x0a\\x0a\\x0a\\x0a"], Just [" 1: seite"], Just [" 2: \\x0a"], Just [" 3: seite"]] , testRegex "^a" [ERROR] [] [Just ["Capturing subpattern count = 0"], Just ["Options: anchored"], Just ["No first char"], Just ["No need char"]] , testRegex "line\\nbreak" [ERROR] ["this is a line\\nbreak", "line one\\nthis is a line\\nbreak in the second line"] [Just ["Capturing subpattern count = 0"], Just ["Contains explicit CR or LF match"], Just ["No options"], Just ["First char = 'l'"], Just ["Need char = 'k'"], Just [" 0: line\\x0abreak"], Just [" 0: line\\x0abreak"]] , testRegex "line\\nbreak" [ERROR] ["this is a line\\nbreak", "** Failers", "line one\\nthis is a line\\nbreak in the second line"] [Just ["Capturing subpattern count = 0"], Just ["Contains explicit CR or LF match"], Just ["Options: firstline"], Just ["First char = 'l'"], Just ["Need char = 'k'"], Just [" 0: line\\x0abreak"], Nothing, Nothing] , testRegex "line\\nbreak" [ERROR] ["this is a line\\nbreak", "** Failers", "line one\\nthis is a line\\nbreak in the second line"] [Just ["Capturing subpattern count = 0"], Just ["Contains explicit CR or LF match"], Just ["Options: multiline firstline"], Just ["First char = 'l'"], Just ["Need char = 'k'"], Just [" 0: line\\x0abreak"], Nothing, Nothing] , testRegex "ab.cd" [ERROR] ["ab-cd", "ab=cd", "** Failers", "ab\\ncd"] [Just [" 0: ab-cd"], Just [" 0: ab=cd"], Just ["No match: POSIX code 17: match failed"], Just ["No match: POSIX code 17: match failed"]] , testRegex "ab.cd" [ERROR] ["ab-cd", "ab=cd", "ab\\ncd"] [Just [" 0: ab-cd"], Just [" 0: ab=cd"], Just [" 0: ab\\x0acd"]] , testRegex "(?i)(?-i)AbCd" [ERROR] ["AbCd", "** Failers", "abcd"] [Just ["Capturing subpattern count = 0"], Just ["No options"], Just ["First char = 'A'"], Just ["Need char = 'd'"], Just [" 0: AbCd"], Nothing, Nothing] , testRegex "a{11111111111111111111}" [ERROR] [] [Just ["Failed: number too big in {} quantifier at offset 22"]] , testRegex "(){64294967295}" [ERROR] [] [Just ["Failed: number too big in {} quantifier at offset 14"]] , testRegex "(){2,4294967295}" [ERROR] [] [Just ["Failed: number too big in {} quantifier at offset 15"]] , testRegex "(?i:a)(?i:b)(?i:c)(?i:d)(?i:e)(?i:f)(?i:g)(?i:h)(?i:i)(?i:j)(k)(?i:l)A\\1B" [ERROR] ["abcdefghijklAkB"] [Just ["Capturing subpattern count = 1"], Just ["Max back reference = 1"], Just ["No options"], Just ["First char = 'a' (caseless)"], Just ["Need char = 'B'"], Just [" 0: abcdefghijklAkB"], Just [" 1: k"]] , testRegex "(?Pa)(?Pb)(?Pc)(?Pd)(?Pe)(?Pf)(?Pg)(?Ph)(?Pi)(?Pj)(?Pk)(?Pl)A\\11B" [ERROR] ["abcdefghijklAkB"] [Just ["Capturing subpattern count = 12"], Just ["Max back reference = 11"], Just ["Named capturing subpatterns:"], Just ["No options"], Just ["First char = 'a'"], Just ["Need char = 'B'"], Just [" 0: abcdefghijklAkB"], Just [" 1: a"], Just [" 2: b"], Just [" 3: c"], Just [" 4: d"], Just [" 5: e"], Just [" 6: f"], Just [" 7: g"], Just [" 8: h"], Just [" 9: i"], Just ["10: j"], Just ["11: k"], Just ["12: l"]] , testRegex "(a)(b)(c)(d)(e)(f)(g)(h)(i)(j)(k)(l)A\\11B" [ERROR] ["abcdefghijklAkB"] [Just ["Capturing subpattern count = 12"], Just ["Max back reference = 11"], Just ["No options"], Just ["First char = 'a'"], Just ["Need char = 'B'"], Just [" 0: abcdefghijklAkB"], Just [" 1: a"], Just [" 2: b"], Just [" 3: c"], Just [" 4: d"], Just [" 5: e"], Just [" 6: f"], Just [" 7: g"], Just [" 8: h"], Just [" 9: i"], Just ["10: j"], Just ["11: k"], Just ["12: l"]] , testRegex "(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)(?Pa)" [ERROR] ["aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"] [Just ["Capturing subpattern count = 101"], Just ["Named capturing subpatterns:"], Just ["No options"], Just ["First char = 'a'"], Just ["Need char = 'a'"], Just ["Matched, but too many substrings"], Just [" 0: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"], Just [" 1: a"], Just [" 2: a"], Just [" 3: a"], Just [" 4: a"], Just [" 5: a"], Just [" 6: a"], Just [" 7: a"], Just [" 8: a"], Just [" 9: a"], Just ["10: a"], Just ["11: a"], Just ["12: a"], Just ["13: a"], Just ["14: a"]] , testRegex "(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)(a)" [ERROR] ["aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"] [Just ["Capturing subpattern count = 101"], Just ["No options"], Just ["First char = 'a'"], Just ["Need char = 'a'"], Just ["Matched, but too many substrings"], Just [" 0: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"], Just [" 1: a"], Just [" 2: a"], Just [" 3: a"], Just [" 4: a"], Just [" 5: a"], Just [" 6: a"], Just [" 7: a"], Just [" 8: a"], Just [" 9: a"], Just ["10: a"], Just ["11: a"], Just ["12: a"], Just ["13: a"], Just ["14: a"]] , testRegex "[^()]*(?:\\((?R)\\)[^()]*)*" [ERROR] ["(this(and)that", "(this(and)that)", "(this(and)that)stuff"] [Just ["Capturing subpattern count = 0"], Just ["Partial matching not supported"], Just ["No options"], Just ["No first char"], Just ["No need char"], Just [" 0: "], Just [" 0: (this(and)that)"], Just [" 0: (this(and)that)stuff"]] , testRegex "[^()]*(?:\\((?>(?R))\\)[^()]*)*" [ERROR] ["(this(and)that", "(this(and)that)"] [Just ["Capturing subpattern count = 0"], Just ["Partial matching not supported"], Just ["No options"], Just ["No first char"], Just ["No need char"], Just [" 0: "], Just [" 0: (this(and)that)"]] , testRegex "[^()]*(?:\\((?R)\\))*[^()]*" [ERROR] ["(this(and)that", "(this(and)that)"] [Just ["Capturing subpattern count = 0"], Just ["Partial matching not supported"], Just ["No options"], Just ["No first char"], Just ["No need char"], Just [" 0: "], Just [" 0: (this(and)that)"]] , testRegex "(?:\\((?R)\\))*[^()]*" [ERROR] ["(this(and)that", "(this(and)that)", "((this))"] [Just ["Capturing subpattern count = 0"], Just ["Partial matching not supported"], Just ["No options"], Just ["No first char"], Just ["No need char"], Just [" 0: "], Just [" 0: "], Just [" 0: ((this))"]] , testRegex "(?:\\((?R)\\))|[^()]*" [ERROR] ["(this(and)that", "(this(and)that)", "(this)", "((this))"] [Just ["Capturing subpattern count = 0"], Just ["Partial matching not supported"], Just ["No options"], Just ["No first char"], Just ["No need char"], Just [" 0: "], Just [" 0: "], Just [" 0: (this)"], Just [" 0: ((this))"]] , testRegex "a(b)c" [ERROR] ["abc"] [Just ["Matched with REG_NOSUB"]] , testRegex "a(?Pb)c" [ERROR] ["abc"] [Just ["Matched with REG_NOSUB"]] , testRegex "\\x{100}" [ERROR] [] [Just ["Failed: character value in \\x{...} sequence is too large at offset 6"]] , testRegex "\\x{0000ff}" [ERROR] [] [Just ["Capturing subpattern count = 0"], Just ["No options"], Just ["First char = 255"], Just ["No need char"]] , testRegex "^((?Pa1)|(?Pa2)b)" [ERROR] [] [Just ["Failed: two named subpatterns have the same name at offset 17"]] , testRegex "^((?Pa1)|(?Pa2)b)" [ERROR] ["a1b\\CA", "a2b\\CA", "** Failers", "a1b\\CZ\\CA"] [Just ["Capturing subpattern count = 3"], Just ["Named capturing subpatterns:"], Just ["Options: anchored dupnames"], Just ["No first char"], Just ["No need char"], Just [" 0: a1"], Just [" 1: a1"], Just [" 2: a1"], Just [" 0: a2b"], Just [" 1: a2b"], Just [" 2: "], Just [" 3: a2"], Nothing, Just ["no parentheses with name \"Z\""], Just [" 0: a1"], Just [" 1: a1"], Just [" 2: a1"], Just ["copy substring Z failed -7"]] , testRegex "^(?Pa)(?Pb)" [ERROR] ["ab\\CA"] [Just ["Capturing subpattern count = 2"], Just ["Named capturing subpatterns:"], Just ["Options: anchored dupnames"], Just ["No first char"], Just ["No need char"], Just [" 0: ab"], Just [" 1: a"], Just [" 2: b"]] , testRegex "^(?Pa)(?Pb)|cd" [ERROR] ["ab\\CA", "cd\\CA"] [Just ["Capturing subpattern count = 2"], Just ["Named capturing subpatterns:"], Just ["Options: dupnames"], Just ["No first char"], Just ["No need char"], Just [" 0: ab"], Just [" 1: a"], Just [" 2: b"], Just [" 0: cd"], Just ["copy substring A failed -7"]] , testRegex "^(?Pa)(?Pb)|cd(?Pef)(?Pgh)" [ERROR] ["cdefgh\\CA"] [Just ["Capturing subpattern count = 4"], Just ["Named capturing subpatterns:"], Just ["Options: dupnames"], Just ["No first char"], Just ["No need char"], Just [" 0: cdefgh"], Just [" 1: "], Just [" 2: "], Just [" 3: ef"], Just [" 4: gh"]] , testRegex "^((?Pa1)|(?Pa2)b)" [ERROR] ["a1b\\GA", "a2b\\GA", "** Failers", "a1b\\GZ\\GA"] [Just ["Capturing subpattern count = 3"], Just ["Named capturing subpatterns:"], Just ["Options: anchored dupnames"], Just ["No first char"], Just ["No need char"], Just [" 0: a1"], Just [" 1: a1"], Just [" 2: a1"], Just [" 0: a2b"], Just [" 1: a2b"], Just [" 2: "], Just [" 3: a2"], Nothing, Just ["no parentheses with name \"Z\""], Just [" 0: a1"], Just [" 1: a1"], Just [" 2: a1"], Just ["copy substring Z failed -7"]] , testRegex "^(?Pa)(?Pb)" [ERROR] ["ab\\GA"] [Just ["Capturing subpattern count = 2"], Just ["Named capturing subpatterns:"], Just ["Options: anchored dupnames"], Just ["No first char"], Just ["No need char"], Just [" 0: ab"], Just [" 1: a"], Just [" 2: b"]] , testRegex "^(?Pa)(?Pb)|cd" [ERROR] ["ab\\GA", "cd\\GA"] [Just ["Capturing subpattern count = 2"], Just ["Named capturing subpatterns:"], Just ["Options: dupnames"], Just ["No first char"], Just ["No need char"], Just [" 0: ab"], Just [" 1: a"], Just [" 2: b"], Just [" 0: cd"], Just ["copy substring A failed -7"]] , testRegex "^(?Pa)(?Pb)|cd(?Pef)(?Pgh)" [ERROR] ["cdefgh\\GA"] [Just ["Capturing subpattern count = 4"], Just ["Named capturing subpatterns:"], Just ["Options: dupnames"], Just ["No first char"], Just ["No need char"], Just [" 0: cdefgh"], Just [" 1: "], Just [" 2: "], Just [" 3: ef"], Just [" 4: gh"]] , testRegex "(?J)^((?Pa1)|(?Pa2)b)" [ERROR] ["a1b\\CA", "a2b\\CA"] [Just ["Capturing subpattern count = 3"], Just ["Named capturing subpatterns:"], Just ["Options: anchored dupnames"], Just ["Duplicate name status changes"], Just ["No first char"], Just ["No need char"], Just [" 0: a1"], Just [" 1: a1"], Just [" 2: a1"], Just [" 0: a2b"], Just [" 1: a2b"], Just [" 2: "], Just [" 3: a2"]] , testRegex "^(?Pa) (?J:(?Pb)(?Pc)) (?Pd)" [ERROR] [] [Just ["Failed: two named subpatterns have the same name at offset 37"]] , testRegex "ERROR" [] ["set in the pattern's options; consequently pcre_get_named_substring() produces", "a random value. /Ix"] [Just ["set in the pattern's options; consequently pcre_get_named_substring() produces"], Just ["a random value. /Ix"], Just ["Capturing subpattern count = 1"], Just ["Options: extended"], Just ["First char = 'I'"], Just ["Need char = 'e'"]] , testRegex "^(?Pa) (?J:(?Pb)(?Pc)) (?Pd)" [ERROR] ["a bc d\\CA\\CB\\CC"] [Just ["Capturing subpattern count = 4"], Just ["Named capturing subpatterns:"], Just ["Options: anchored"], Just ["Duplicate name status changes"], Just ["No first char"], Just ["No need char"], Just [" 0: a bc d"], Just [" 1: a"], Just [" 2: b"], Just [" 3: c"], Just [" 4: d"]] , testRegex "^(?Pa)?(?(A)a|b)" [ERROR] ["aabc", "bc", "** Failers", "abc"] [Just ["Capturing subpattern count = 1"], Just ["Named capturing subpatterns:"], Just ["Options: anchored"], Just ["No first char"], Just ["No need char"], Just [" 0: aa"], Just [" 1: a"], Just [" 0: b"], Nothing, Nothing] , testRegex "(?:(?(ZZ)a|b)(?PX))+" [ERROR] ["bXaX"] [Just ["Capturing subpattern count = 1"], Just ["Named capturing subpatterns:"], Just ["No options"], Just ["No first char"], Just ["Need char = 'X'"], Just [" 0: bXaX"], Just [" 1: X"]] , testRegex "(?:(?(2y)a|b)(X))+" [ERROR] [] [Just ["Failed: reference to non-existent subpattern at offset 9"]] , testRegex "(?:(?(ZA)a|b)(?PX))+" [ERROR] [] [Just ["Failed: reference to non-existent subpattern at offset 9"]] , testRegex "(?:(?(ZZ)a|b)(?(ZZ)a|b)(?PX))+" [ERROR] ["bbXaaX"] [Just ["Capturing subpattern count = 1"], Just ["Named capturing subpatterns:"], Just ["No options"], Just ["No first char"], Just ["Need char = 'X'"], Just [" 0: bbXaaX"], Just [" 1: X"]] , testRegex "(?:(?(ZZ)a|\\(b\\))\\\\(?PX))+" [ERROR] ["(b)\\\\Xa\\\\X"] [Just ["Capturing subpattern count = 1"], Just ["Named capturing subpatterns:"], Just ["No options"], Just ["No first char"], Just ["Need char = 'X'"], Just [" 0: (b)\\Xa\\X"], Just [" 1: X"]] , testRegex "(?PX|Y))+" [ERROR] ["bXXaYYaY", "bXYaXXaX"] [Just ["Capturing subpattern count = 1"], Just ["Max back reference = 1"], Just ["Named capturing subpatterns:"], Just ["No options"], Just ["No first char"], Just ["No need char"], Just [" 0: bXXaYYaY"], Just [" 1: Y"], Just [" 0: bX"], Just [" 1: X"]] , testRegex "()()()()()()()()()(?:(?(A)(?P=A)a|b)(?PX|Y))+" [ERROR] ["bXXaYYaY"] [Just ["Capturing subpattern count = 10"], Just ["Max back reference = 10"], Just ["Named capturing subpatterns:"], Just ["No options"], Just ["No first char"], Just ["No need char"], Just [" 0: bXXaYYaY"], Just [" 1: "], Just [" 2: "], Just [" 3: "], Just [" 4: "], Just [" 5: "], Just [" 6: "], Just [" 7: "], Just [" 8: "], Just [" 9: "], Just ["10: Y"]] , testRegex "\\777" [ERROR] [] [Just ["Failed: octal value is greater than \\377 (not in UTF-8 mode) at offset 3"]] , testRegex "\\s*,\\s*" [ERROR] ["\\x0b,\\x0b", "\\x0c,\\x0d"] [Just ["Capturing subpattern count = 0"], Just ["Partial matching not supported"], Just ["No options"], Just ["No first char"], Just ["Need char = ','"], Just ["Starting byte set: \\x09 \\x0a \\x0c \\x0d \\x20 , "], Just [" 0: ,"], Just [" 0: \\x0c,\\x0d"]] , testRegex "^abc" [ERROR] ["xyz\\nabc", "xyz\\nabc\\", "xyz\\r\\nabc\\", "xyz\\rabc\\", "xyz\\r\\nabc\\", "** Failers", "xyz\\nabc\\", "xyz\\r\\nabc\\", "xyz\\nabc\\", "xyz\\rabc\\", "xyz\\rabc\\"] [Just ["Capturing subpattern count = 0"], Just ["Options: multiline"], Just ["First char at start or follows newline"], Just ["Need char = 'c'"], Just [" 0: abc"], Just [" 0: abc"], Just [" 0: abc"], Just [" 0: abc"], Just [" 0: abc"], Nothing, Nothing, Nothing, Nothing, Nothing, Nothing] , testRegex "abc$" [ERROR] ["xyzabc", "xyzabc\\n", "xyzabc\\npqr", "xyzabc\\r\\", "xyzabc\\rpqr\\", "xyzabc\\r\\n\\", "xyzabc\\r\\npqr\\", "** Failers", "xyzabc\\r", "xyzabc\\rpqr", "xyzabc\\r\\n", "xyzabc\\r\\npqr"] [Just ["Capturing subpattern count = 0"], Just ["Options: multiline"], Just ["Forced newline sequence: LF"], Just ["First char = 'a'"], Just ["Need char = 'c'"], Just [" 0: abc"], Just [" 0: abc"], Just [" 0: abc"], Just [" 0: abc"], Just [" 0: abc"], Just [" 0: abc"], Just [" 0: abc"], Nothing, Nothing, Nothing, Nothing, Nothing] , testRegex "^abc" [ERROR] ["xyz\\rabcdef", "xyz\\nabcdef\\", "** Failers", "xyz\\nabcdef"] [Just ["Capturing subpattern count = 0"], Just ["Options: multiline"], Just ["Forced newline sequence: CR"], Just ["First char at start or follows newline"], Just ["Need char = 'c'"], Just [" 0: abc"], Just [" 0: abc"], Nothing, Nothing] , testRegex "^abc" [ERROR] ["xyz\\nabcdef", "xyz\\rabcdef\\", "** Failers", "xyz\\rabcdef"] [Just ["Capturing subpattern count = 0"], Just ["Options: multiline"], Just ["Forced newline sequence: LF"], Just ["First char at start or follows newline"], Just ["Need char = 'c'"], Just [" 0: abc"], Just [" 0: abc"], Nothing, Nothing] , testRegex "^abc" [ERROR] ["xyz\\r\\nabcdef", "xyz\\rabcdef\\", "** Failers", "xyz\\rabcdef"] [Just ["Capturing subpattern count = 0"], Just ["Options: multiline"], Just ["Forced newline sequence: CRLF"], Just ["First char at start or follows newline"], Just ["Need char = 'c'"], Just [" 0: abc"], Just [" 0: abc"], Nothing, Nothing] , testRegex "^abc" [ERROR] [] [Just ["Unknown newline type at: "]] , testRegex "abc" [ERROR] ["xyz\\rabc\\", "abc"] [Just ["Capturing subpattern count = 0"], Just ["No options"], Just ["First char = 'a'"], Just ["Need char = 'c'"], Just ["Unknown newline type at: "], Just [" 0: abc"]] , testRegex ".*" [ERROR] ["abc\\ndef", "abc\\rdef", "abc\\r\\ndef", "\\abc\\ndef", "\\abc\\rdef", "\\abc\\r\\ndef", "\\abc\\ndef", "\\abc\\rdef", "\\abc\\r\\ndef"] [Just ["Capturing subpattern count = 0"], Just ["Partial matching not supported"], Just ["Options:"], Just ["Forced newline sequence: LF"], Just ["First char at start or follows newline"], Just ["No need char"], Just [" 0: abc"], Just [" 0: abc\\x0ddef"], Just [" 0: abc\\x0d"], Just [" 0: abc\\x0adef"], Just [" 0: abc"], Just [" 0: abc"], Just [" 0: abc\\x0adef"], Just [" 0: abc\\x0ddef"], Just [" 0: abc"]] , testRegex "\\w+(.)(.)?def" [ERROR] ["abc\\ndef", "abc\\rdef", "abc\\r\\ndef"] [Just ["Capturing subpattern count = 2"], Just ["Partial matching not supported"], Just ["Options: dotall"], Just ["No first char"], Just ["Need char = 'f'"], Just [" 0: abc\\x0adef"], Just [" 1: \\x0a"], Just [" 0: abc\\x0ddef"], Just [" 1: \\x0d"], Just [" 0: abc\\x0d\\x0adef"], Just [" 1: \\x0d"], Just [" 2: \\x0a"]] , testRegex "ERROR" [] ["/* this is a C style comment */\\M"] [Just ["Capturing subpattern count = 1"], Just ["Partial matching not supported"], Just ["No options"], Just ["No first char"], Just ["No need char"], Just ["Minimum match() limit = 120"], Just ["Minimum match() recursion limit = 6"], Just [" 0: /* this is a C style comment */"], Just [" 1: /* this is a C style comment */"]] , testRegex "(?P25[0-5]|2[0-4]\\d|[01]?\\d?\\d)(?:\\.(?P>B)){3}" [ERROR] [] [Just ["Capturing subpattern count = 1"], Just ["Named capturing subpatterns:"], Just ["No options"], Just ["No first char"], Just ["Need char = '.'"]] , testRegex "ERROR" [] ["()()()()()()()()()()()()()()()()()()()()", "()()()()()()()()()()()()()()()()()()()()", "()()()()()()()()()()()()()()()()()()()()", "()()()()()()()()()()()()()()()()()()()()", "(.(.))/Ix", "XY\\O400"] [Just [" ()()()()()()()()()()()()()()()()()()()()"], Just [" ()()()()()()()()()()()()()()()()()()()()"], Just [" ()()()()()()()()()()()()()()()()()()()()"], Just [" ()()()()()()()()()()()()()()()()()()()()"], Just [" (.(.))/Ix"], Just ["Capturing subpattern count = 102"], Just ["Options: extended"], Just ["No first char"], Just ["No need char"], Just [" 0: XY"], Just [" 1: "], Just [" 2: "], Just [" 3: "], Just [" 4: "], Just [" 5: "], Just [" 6: "], Just [" 7: "], Just [" 8: "], Just [" 9: "], Just ["10: "], Just ["11: "], Just ["12: "], Just ["13: "], Just ["14: "], Just ["15: "], Just ["16: "], Just ["17: "], Just ["18: "], Just ["19: "], Just ["20: "], Just ["21: "], Just ["22: "], Just ["23: "], Just ["24: "], Just ["25: "], Just ["26: "], Just ["27: "], Just ["28: "], Just ["29: "], Just ["30: "], Just ["31: "], Just ["32: "], Just ["33: "], Just ["34: "], Just ["35: "], Just ["36: "], Just ["37: "], Just ["38: "], Just ["39: "], Just ["40: "], Just ["41: "], Just ["42: "], Just ["43: "], Just ["44: "], Just ["45: "], Just ["46: "], Just ["47: "], Just ["48: "], Just ["49: "], Just ["50: "], Just ["51: "], Just ["52: "], Just ["53: "], Just ["54: "], Just ["55: "], Just ["56: "], Just ["57: "], Just ["58: "], Just ["59: "], Just ["60: "], Just ["61: "], Just ["62: "], Just ["63: "], Just ["64: "], Just ["65: "], Just ["66: "], Just ["67: "], Just ["68: "], Just ["69: "], Just ["70: "], Just ["71: "], Just ["72: "], Just ["73: "], Just ["74: "], Just ["75: "], Just ["76: "], Just ["77: "], Just ["78: "], Just ["79: "], Just ["80: "], Just ["81: "], Just ["82: "], Just ["83: "], Just ["84: "], Just ["85: "], Just ["86: "], Just ["87: "], Just ["88: "], Just ["89: "], Just ["90: "], Just ["91: "], Just ["92: "], Just ["93: "], Just ["94: "], Just ["95: "], Just ["96: "], Just ["97: "], Just ["98: "], Just ["99: "], Just ["100: "], Just ["101: XY"], Just ["102: Y"]] , testRegex "(a*b|(?i:c*(?-i)d))" [ERROR] [] [Just ["Capturing subpattern count = 1"], Just ["Partial matching not supported"], Just ["No options"], Just ["No first char"], Just ["No need char"], Just ["Starting byte set: C a b c d "]] , testRegex "()[ab]xyz" [ERROR] [] [Just ["Capturing subpattern count = 1"], Just ["No options"], Just ["No first char"], Just ["Need char = 'z'"], Just ["Starting byte set: a b "]] , testRegex "(|)[ab]xyz" [ERROR] [] [Just ["Capturing subpattern count = 1"], Just ["No options"], Just ["No first char"], Just ["Need char = 'z'"], Just ["Starting byte set: a b "]] , testRegex "(|c)[ab]xyz" [ERROR] [] [Just ["Capturing subpattern count = 1"], Just ["No options"], Just ["No first char"], Just ["Need char = 'z'"], Just ["Starting byte set: a b c "]] , testRegex "(|c?)[ab]xyz" [ERROR] [] [Just ["Capturing subpattern count = 1"], Just ["No options"], Just ["No first char"], Just ["Need char = 'z'"], Just ["Starting byte set: a b c "]] , testRegex "(d?|c?)[ab]xyz" [ERROR] [] [Just ["Capturing subpattern count = 1"], Just ["No options"], Just ["No first char"], Just ["Need char = 'z'"], Just ["Starting byte set: a b c d "]] , testRegex "(d?|c)[ab]xyz" [ERROR] [] [Just ["Capturing subpattern count = 1"], Just ["No options"], Just ["No first char"], Just ["Need char = 'z'"], Just ["Starting byte set: a b c d "]] , testRegex "^a*b\\d" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just ["Capturing subpattern count = 0"], Just ["Partial matching not supported"], Just ["Options: anchored"], Just ["No first char"], Just ["Need char = 'b'"]] , testRegex "^a*+b\\d" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just ["Capturing subpattern count = 0"], Just ["Partial matching not supported"], Just ["Options: anchored"], Just ["No first char"], Just ["Need char = 'b'"]] , testRegex "^a*?b\\d" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just ["Capturing subpattern count = 0"], Just ["Partial matching not supported"], Just ["Options: anchored"], Just ["No first char"], Just ["Need char = 'b'"]] , testRegex "^a+A\\d" [ERROR] ["aaaA5", "** Failers", "aaaa5"] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just ["Capturing subpattern count = 0"], Just ["Partial matching not supported"], Just ["Options: anchored"], Just ["No first char"], Just ["Need char = 'A'"], Just [" 0: aaaA5"], Nothing, Nothing] , testRegex "^a*A\\d" [ERROR] ["aaaA5", "aaaa5"] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just ["Capturing subpattern count = 0"], Just ["Partial matching not supported"], Just ["Options: anchored caseless"], Just ["No first char"], Just ["Need char = 'A' (caseless)"], Just [" 0: aaaA5"], Just [" 0: aaaa5"]] , testRegex "(a*|b*)[cd]" [ERROR] [] [Just ["Capturing subpattern count = 1"], Just ["Partial matching not supported"], Just ["No options"], Just ["No first char"], Just ["No need char"], Just ["Starting byte set: a b c d "]] , testRegex "(a+|b*)[cd]" [ERROR] [] [Just ["Capturing subpattern count = 1"], Just ["Partial matching not supported"], Just ["No options"], Just ["No first char"], Just ["No need char"], Just ["Starting byte set: a b c d "]] , testRegex "(a*|b+)[cd]" [ERROR] [] [Just ["Capturing subpattern count = 1"], Just ["Partial matching not supported"], Just ["No options"], Just ["No first char"], Just ["No need char"], Just ["Starting byte set: a b c d "]] , testRegex "(a+|b+)[cd]" [ERROR] [] [Just ["Capturing subpattern count = 1"], Just ["Partial matching not supported"], Just ["No options"], Just ["No first char"], Just ["No need char"], Just ["Starting byte set: a b "]] , testRegex "ERROR" [] ["((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((", "(((", "a", "))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))", "))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))", ")))", "/Ix", "large nest"] [Just [" (((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((("], Just [" ((("], Just [" a"], Just [" ))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))"], Just [" ))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))"], Just [" )))"], Just ["/Ix"], Just ["Capturing subpattern count = 203"], Just ["Options: extended"], Just ["First char = 'a'"], Just ["No need char"], Just ["Matched, but too many substrings"], Just [" 0: a"], Just [" 1: a"], Just [" 2: a"], Just [" 3: a"], Just [" 4: a"], Just [" 5: a"], Just [" 6: a"], Just [" 7: a"], Just [" 8: a"], Just [" 9: a"], Just ["10: a"], Just ["11: a"], Just ["12: a"], Just ["13: a"], Just ["14: a"]] , testRegex "a*\\d" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "a*\\D" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "0*\\d" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "0*\\D" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "a*\\s" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "a*\\S" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex " *\\s" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex " *\\S" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "a*\\w" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "a*\\W" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "=*\\w" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "=*\\W" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "\\d*a" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "\\d*2" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "\\d*\\d" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "\\d*\\D" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "\\d*\\s" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "\\d*\\S" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "\\d*\\w" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "\\d*\\W" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "\\D*a" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "\\D*2" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "\\D*\\d" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "\\D*\\D" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "\\D*\\s" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "\\D*\\S" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "\\D*\\w" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "\\D*\\W" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "\\s*a" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "\\s*2" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "\\s*\\d" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "\\s*\\D" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "\\s*\\s" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "\\s*\\S" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "\\s*\\w" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "\\s*\\W" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "\\S*a" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "\\S*2" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "\\S*\\d" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "\\S*\\D" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "\\S*\\s" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "\\S*\\S" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "\\S*\\w" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "\\S*\\W" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "\\w*a" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "\\w*2" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "\\w*\\d" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "\\w*\\D" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "\\w*\\s" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "\\w*\\S" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "\\w*\\w" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "\\w*\\W" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "\\W*a" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "\\W*2" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "\\W*\\d" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "\\W*\\D" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "\\W*\\s" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "\\W*\\S" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "\\W*\\w" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "\\W*\\W" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "[^a]+a" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "[^a]+a" [caseless] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "[^a]+A" [caseless] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "[^a]+b" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "[^a]+\\d" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "a*[^a]" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "(?Px)(?Py)" [ERROR] ["xy\\Cabc\\Cxyz"] [Just ["Capturing subpattern count = 2"], Just ["Named capturing subpatterns:"], Just ["No options"], Just ["First char = 'x'"], Just ["Need char = 'y'"], Just [" 0: xy"], Just [" 1: x"], Just [" 2: y"]] , testRegex "(?x)(?'xyz'y)" [ERROR] ["xy\\Cabc\\Cxyz"] [Just ["Capturing subpattern count = 2"], Just ["Named capturing subpatterns:"], Just ["No options"], Just ["First char = 'x'"], Just ["Need char = 'y'"], Just [" 0: xy"], Just [" 1: x"], Just [" 2: y"]] , testRegex "(?x)(?'xyz>y)" [ERROR] [] [Just ["Failed: syntax error in subpattern name (missing terminator) at offset 15"]] , testRegex "(?P'abc'x)(?Py)" [ERROR] [] [Just ["Failed: unrecognized character after (?P at offset 3"]] , testRegex "^(?:(?(ZZ)a|b)(?X))+" [] ["bXaX", "bXbX", "** Failers", "aXaX", "aXbX"] [Just [" 0: bXaX"], Just [" 1: X"], Just [" 0: bX"], Just [" 1: X"], Nothing, Nothing, Nothing] , testRegex "^(?P>abc)(?xxx)" [] [] [Just ["Failed: reference to non-existent subpattern at offset 8"]] , testRegex "^(?P>abc)(?x|y)" [] ["xx", "xy", "yy", "yx"] [Just [" 0: xx"], Just [" 1: x"], Just [" 0: xy"], Just [" 1: y"], Just [" 0: yy"], Just [" 1: y"], Just [" 0: yx"], Just [" 1: x"]] , testRegex "^(?P>abc)(?Px|y)" [] ["xx", "xy", "yy", "yx"] [Just [" 0: xx"], Just [" 1: x"], Just [" 0: xy"], Just [" 1: y"], Just [" 0: yy"], Just [" 1: y"], Just [" 0: yx"], Just [" 1: x"]] , testRegex "^((?(abc)a|b)(?x|y))+" [] ["bxay", "bxby", "** Failers", "axby"] [Just [" 0: bxay"], Just [" 1: ay"], Just [" 2: y"], Just [" 0: bx"], Just [" 1: bx"], Just [" 2: x"], Nothing, Nothing] , testRegex "^(((?P=abc)|X)(?x|y))+" [] ["XxXxxx", "XxXyyx", "XxXyxx", "** Failers", "x"] [Just [" 0: XxXxxx"], Just [" 1: xx"], Just [" 2: x"], Just [" 3: x"], Just [" 0: XxXyyx"], Just [" 1: yx"], Just [" 2: y"], Just [" 3: x"], Just [" 0: XxXy"], Just [" 1: Xy"], Just [" 2: X"], Just [" 3: y"], Nothing, Nothing] , testRegex "^(?1)(abc)" [] ["abcabc"] [Just [" 0: abcabc"], Just [" 1: abc"]] , testRegex "^(?:(?:\\1|X)(a|b))+" [] ["Xaaa", "Xaba"] [Just [" 0: Xaaa"], Just [" 1: a"], Just [" 0: Xa"], Just [" 1: a"]] , testRegex "^[\\E\\Qa\\E-\\Qz\\E]+" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "^[a\\Q]bc\\E]" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "^[a-\\Q\\E]" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "^(?P>abc)[()](?)" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "^((?(abc)y)[()](?Px))+" [ERROR] ["(xy)x"] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just [" 0: (xy)x"], Just [" 1: y)x"], Just [" 2: x"]] , testRegex "^(?P>abc)\\Q()\\E(?)" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "^(?P>abc)[a\\Q(]\\E(](?)" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "ERROR" [] ["(?)/BZx"] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "^\\W*(?:(?(?.)\\W*(?&one)\\W*\\k|)|(?(?.)\\W*(?&three)\\W*\\k'four'|\\W*.\\W*))\\W*$" [caseless] ["1221", "Satan, oscillate my metallic sonatas!", "A man, a plan, a canal: Panama!", "Able was I ere I saw Elba.", "*** Failers", "The quick brown fox"] [Just ["Capturing subpattern count = 4"], Just ["Max back reference = 4"], Just ["Named capturing subpatterns:"], Just ["Partial matching not supported"], Just ["Options: anchored caseless"], Just ["No first char"], Just ["No need char"], Just [" 0: 1221"], Just [" 1: 1221"], Just [" 2: 1"], Just [" 0: Satan, oscillate my metallic sonatas!"], Just [" 1: "], Just [" 2: "], Just [" 3: Satan, oscillate my metallic sonatas"], Just [" 4: S"], Just [" 0: A man, a plan, a canal: Panama!"], Just [" 1: "], Just [" 2: "], Just [" 3: A man, a plan, a canal: Panama"], Just [" 4: A"], Just [" 0: Able was I ere I saw Elba."], Just [" 1: "], Just [" 2: "], Just [" 3: Able was I ere I saw Elba"], Just [" 4: A"], Nothing, Nothing] , testRegex "(?=(\\w+))\\1:" [ERROR] ["abcd:"] [Just ["Capturing subpattern count = 1"], Just ["Max back reference = 1"], Just ["Partial matching not supported"], Just ["No options"], Just ["No first char"], Just ["Need char = ':'"], Just [" 0: abcd:"], Just [" 1: abcd"]] , testRegex "(?=(?'abc'\\w+))\\k:" [ERROR] ["abcd:"] [Just ["Capturing subpattern count = 1"], Just ["Max back reference = 1"], Just ["Named capturing subpatterns:"], Just ["Partial matching not supported"], Just ["No options"], Just ["No first char"], Just ["Need char = ':'"], Just [" 0: abcd:"], Just [" 1: abcd"]] , testRegex "(?'abc'\\w+):\\k{2}" [] ["a:aaxyz", "ab:ababxyz", "** Failers", "a:axyz", "ab:abxyz"] [Just [" 0: a:aa"], Just [" 1: a"], Just [" 0: ab:abab"], Just [" 1: ab"], Nothing, Nothing, Nothing] , testRegex "(?'abc'a|b)(?d|e)\\k{2}" [ERROR] ["adaa", "** Failers", "addd", "adbb"] [Just [" 0: adaa"], Just [" 1: a"], Just [" 2: d"], Nothing, Nothing, Nothing] , testRegex "(?'abc'a|b)(?d|e)(?&abc){2}" [ERROR] ["bdaa", "bdab", "** Failers", "bddd"] [Just [" 0: bdaa"], Just [" 1: b"], Just [" 2: d"], Just [" 0: bdab"], Just [" 1: b"], Just [" 2: d"], Nothing, Nothing] , testRegex "^(?a)? (?()b|c) (?('ab')d|e)" [ERROR] ["abd", "ce"] [Just [" 0: abd"], Just [" 1: a"], Just [" 0: ce"]] , testRegex "(?( (?'B' abc (?(R) (?(R&A)1) (?(R&B)2) X | (?1) (?2) (?R) ))) " [ERROR] ["abcabc1Xabc2XabcXabcabc"] [Just [" 0: abcabc1Xabc2XabcX"], Just [" 1: abcabc1Xabc2XabcX"], Just [" 2: abcabc1Xabc2XabcX"]] , testRegex "(? (?'B' abc (?(R) (?(R&1)1) (?(R&B)2) X | (?1) (?2) (?R) ))) " [ERROR] [] [Just ["Failed: reference to non-existent subpattern at offset 29"]] , testRegex "(?<1> (?'B' abc (?(R) (?(R&1)1) (?(R&B)2) X | (?1) (?2) (?R) ))) " [ERROR] ["abcabc1Xabc2XabcXabcabc"] [Just [" 0: abcabc1Xabc2XabcX"], Just [" 1: abcabc1Xabc2XabcX"], Just [" 2: abcabc1Xabc2XabcX"]] , testRegex "^(?(DEFINE) (? a) (? b) ) (?&A) (?&B) " [ERROR] ["abcd"] [Just [" 0: ab"], Just [" 1: "], Just [" 2: "]] , testRegex "ERROR" [] ["(?(DEFINE)", "(?[a-z]+)", "(?\\d+)", ")/x", "metcalfe 33"] [Just [" 0: metcalfe 33"], Just [" 1: metcalfe"], Just [" 2: 33"], Just [" 3: "], Just [" 4: "]] , testRegex "^(?(DEFINE) abc | xyz ) " [ERROR] [] [Just ["Failed: DEFINE group contains more than one branch at offset 22"]] , testRegex "(?(DEFINE) abc) xyz" [ERROR] [] [Just ["Capturing subpattern count = 0"], Just ["Options: extended"], Just ["First char = 'x'"], Just ["Need char = 'z'"]] , testRegex "(?(DEFINE) abc){3} xyz" [ERROR] [] [Just ["Failed: repeating a DEFINE group is not allowed at offset 17"]] , testRegex "(a|)*\\d" [] ["\\O0aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "\\O0aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa4"] [Nothing, Just ["Matched, but too many substrings"]] , testRegex "^a.b" [ERROR] ["a\\rb", "a\\nb\\", "a\\x85b\\ ", "** Failers", "a\\nb", "a\\nb\\", "a\\rb\\", "a\\rb\\", "a\\x85b\\ ", "a\\rb\\"] [Just [" 0: a\\x0db"], Just [" 0: a\\x0ab"], Just [" 0: a\\x85b"], Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing] , testRegex "^abc." [ERROR] ["abc1 \\x0aabc2 \\x0babc3xx \\x0cabc4 \\x0dabc5xx \\x0d\\x0aabc6 \\x85abc7 \\x{2028}abc8 \\x{2029}abc9 JUNK"] [Just [" 0: abc1"], Just [" 0: abc2"], Just [" 0: abc3"], Just [" 0: abc4"], Just [" 0: abc5"], Just [" 0: abc6"], Just [" 0: abc7"]] , testRegex "abc.$" [ERROR] ["abc1\\x0a abc2\\x0b abc3\\x0c abc4\\x0d abc5\\x0d\\x0a abc6\\x85 abc7\\x{2028} abc8\\x{2029} abc9"] [Just [" 0: abc1"], Just [" 0: abc2"], Just [" 0: abc3"], Just [" 0: abc4"], Just [" 0: abc5"], Just [" 0: abc6"], Just [" 0: abc9"]] , testRegex "a" [ERROR] [] [] , testRegex "a" [ERROR] [] [Just ["Failed: inconsistent NEWLINE options at offset 0"]] , testRegex "^a\\Rb" [ERROR] ["a\\nb", "a\\rb", "a\\r\\nb", "a\\x0bb", "a\\x0cb", "a\\x85b", "** Failers", "a\\n\\rb"] [Just [" 0: a\\x0ab"], Just [" 0: a\\x0db"], Just [" 0: a\\x0d\\x0ab"], Just [" 0: a\\x0bb"], Just [" 0: a\\x0cb"], Just [" 0: a\\x85b"], Nothing, Nothing] , testRegex "^a\\R*b" [ERROR] ["ab", "a\\nb", "a\\rb", "a\\r\\nb", "a\\x0bb", "a\\x0cb", "a\\x85b", "a\\n\\rb", "a\\n\\r\\x85\\x0cb"] [Just [" 0: ab"], Just [" 0: a\\x0ab"], Just [" 0: a\\x0db"], Just [" 0: a\\x0d\\x0ab"], Just [" 0: a\\x0bb"], Just [" 0: a\\x0cb"], Just [" 0: a\\x85b"], Just [" 0: a\\x0a\\x0db"], Just [" 0: a\\x0a\\x0d\\x85\\x0cb"]] , testRegex "^a\\R+b" [ERROR] ["a\\nb", "a\\rb", "a\\r\\nb", "a\\x0bb", "a\\x0cb", "a\\x85b", "a\\n\\rb", "a\\n\\r\\x85\\x0cb", "** Failers", "ab"] [Just [" 0: a\\x0ab"], Just [" 0: a\\x0db"], Just [" 0: a\\x0d\\x0ab"], Just [" 0: a\\x0bb"], Just [" 0: a\\x0cb"], Just [" 0: a\\x85b"], Just [" 0: a\\x0a\\x0db"], Just [" 0: a\\x0a\\x0d\\x85\\x0cb"], Nothing, Nothing] , testRegex "^a\\R{1,3}b" [ERROR] ["a\\nb", "a\\n\\rb", "a\\n\\r\\x85b", "a\\r\\n\\r\\nb", "a\\r\\n\\r\\n\\r\\nb", "a\\n\\r\\n\\rb", "a\\n\\n\\r\\nb", "** Failers", "a\\n\\n\\n\\rb", "a\\r"] [Just [" 0: a\\x0ab"], Just [" 0: a\\x0a\\x0db"], Just [" 0: a\\x0a\\x0d\\x85b"], Just [" 0: a\\x0d\\x0a\\x0d\\x0ab"], Just [" 0: a\\x0d\\x0a\\x0d\\x0a\\x0d\\x0ab"], Just [" 0: a\\x0a\\x0d\\x0a\\x0db"], Just [" 0: a\\x0a\\x0a\\x0d\\x0ab"], Nothing, Nothing, Nothing] , testRegex "^a[\\R]b" [ERROR] ["aRb", "** Failers", "a\\nb"] [Just [" 0: aRb"], Nothing, Nothing] , testRegex "(?&abc)X(?P)" [ERROR] ["abcPXP123"] [Just ["Capturing subpattern count = 1"], Just ["Named capturing subpatterns:"], Just ["No options"], Just ["No first char"], Just ["Need char = 'P'"], Just [" 0: PXP"], Just [" 1: P"]] , testRegex "(?1)X(?P)" [ERROR] ["abcPXP123"] [Just ["Capturing subpattern count = 1"], Just ["Named capturing subpatterns:"], Just ["No options"], Just ["No first char"], Just ["Need char = 'P'"], Just [" 0: PXP"], Just [" 1: P"]] , testRegex "(?(DEFINE)(?2[0-4]\\d|25[0-5]|1\\d\\d|[1-9]?\\d))\\b(?&byte)(\\.(?&byte)){3}" [] ["1.2.3.4", "131.111.10.206", "10.0.0.0", "** Failers", "10.6", "455.3.4.5"] [Just [" 0: 1.2.3.4"], Just [" 1: "], Just [" 2: .4"], Just [" 0: 131.111.10.206"], Just [" 1: "], Just [" 2: .206"], Just [" 0: 10.0.0.0"], Just [" 1: "], Just [" 2: .0"], Nothing, Nothing, Nothing] , testRegex "\\b(?&byte)(\\.(?&byte)){3}(?(DEFINE)(?2[0-4]\\d|25[0-5]|1\\d\\d|[1-9]?\\d))" [] ["1.2.3.4", "131.111.10.206", "10.0.0.0", "** Failers", "10.6", "455.3.4.5"] [Just [" 0: 1.2.3.4"], Just [" 1: .4"], Just [" 2: "], Just [" 0: 131.111.10.206"], Just [" 1: .206"], Just [" 2: "], Just [" 0: 10.0.0.0"], Just [" 1: .0"], Just [" 2: "], Nothing, Nothing, Nothing] , testRegex "(?:a(?&abc)b)*(?x)" [] ["123axbaxbaxbx456", "123axbaxbaxb456"] [Just [" 0: axbaxbaxbx"], Just [" 1: x"], Just [" 0: x"], Just [" 1: x"]] , testRegex "(?:a(?&abc)b){1,5}(?x)" [] ["123axbaxbaxbx456"] [Just [" 0: axbaxbaxbx"], Just [" 1: x"]] , testRegex "(?:a(?&abc)b){2,5}(?x)" [] ["123axbaxbaxbx456"] [Just [" 0: axbaxbaxbx"], Just [" 1: x"]] , testRegex "(?:a(?&abc)b){2,}(?x)" [] ["123axbaxbaxbx456"] [Just [" 0: axbaxbaxbx"], Just [" 1: x"]] , testRegex "(abc)(?i:(?1))" [] ["defabcabcxyz", "DEFabcABCXYZ"] [Just [" 0: abcabc"], Just [" 1: abc"], Nothing] , testRegex "(abc)(?:(?i)(?1))" [] ["defabcabcxyz", "DEFabcABCXYZ"] [Just [" 0: abcabc"], Just [" 1: abc"], Nothing] , testRegex "^(a(b))\\1\\g1\\g{1}\\g-1\\g{-1}\\g{-02}Z" [] ["ababababbbabZXXXX"] [Just [" 0: ababababbbabZ"], Just [" 1: ab"], Just [" 2: b"]] , testRegex "^(a)\\g-2" [] [] [Just ["Failed: reference to non-existent subpattern at offset 7"]] , testRegex "^(a)\\g" [] [] [Just ["Failed: \\g is not followed by a braced name or an optionally braced non-zero number at offset 5"]] , testRegex "^(a)\\g{0}" [] [] [Just ["Failed: \\g is not followed by a braced name or an optionally braced non-zero number at offset 7"]] , testRegex "^(a)\\g{3" [] [] [Just ["Failed: \\g is not followed by a braced name or an optionally braced non-zero number at offset 8"]] , testRegex "^(a)\\g{4a}" [] [] [Just ["Failed: reference to non-existent subpattern at offset 9"]] , testRegex "^a.b" [ERROR] ["a\\rb", "*** Failers", "a\\nb"] [Just [" 0: a\\x0db"], Nothing, Nothing] , testRegex ".+foo" [] ["afoo", "** Failers", "\\r\\nfoo", "\\nfoo"] [Just [" 0: afoo"], Nothing, Nothing, Nothing] , testRegex ".+foo" [ERROR] ["afoo", "\\nfoo", "** Failers", "\\r\\nfoo"] [Just [" 0: afoo"], Just [" 0: \\x0afoo"], Nothing, Nothing] , testRegex ".+foo" [ERROR] ["afoo", "** Failers", "\\nfoo", "\\r\\nfoo"] [Just [" 0: afoo"], Nothing, Nothing, Nothing] , testRegex ".+foo" [ERROR] ["afoo", "\\r\\nfoo", "\\nfoo", "", "/^$/mg", "abc\\r\\rxyz", "abc\\n\\rxyz ", "** Failers ", "abc\\r\\nxyz"] [Just [" 0: afoo"], Just [" 0: \\x0d\\x0afoo"], Just [" 0: \\x0afoo"], Just ["/^$/mg"], Just [" 0: "], Just [" 0: "], Nothing, Nothing] , testRegex "(?m)^$" [ERROR] ["abc\\r\\n\\r\\n"] [Just [" 0: "], Just [" 0+ \\x0d\\x0a"]] , testRegex "(?m)^$|^\\r\\n" [ERROR] ["abc\\r\\n\\r\\n", "", "/(?m)$/g+ ", "abc\\r\\n\\r\\n"] [Just [" 0: "], Just [" 0+ \\x0d\\x0a"], Just [" 0: \\x0d\\x0a"], Just [" 0+ "], Just ["/(?m)$/g+ "], Just [" 0: "], Just [" 0+ \\x0d\\x0a\\x0d\\x0a"], Just [" 0: "], Just [" 0+ \\x0d\\x0a"], Just [" 0: "], Just [" 0+ "]] , testRegex "abc.$" [ERROR] ["abc1\\x0a abc2\\x0b abc3\\x0c abc4\\x0d abc5\\x0d\\x0a abc6\\x85 abc7\\x{2028} abc8\\x{2029} abc9"] [Just [" 0: abc1"], Just [" 0: abc4"], Just [" 0: abc5"], Just [" 0: abc9"]] , testRegex "^X" [ERROR] ["XABC", "** Failers ", "XABC\\B"] [Just [" 0: X"], Nothing, Nothing] , testRegex "(ab|c)(?-1)" [ERROR] ["abc"] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just [" 0: abc"], Just [" 1: ab"]] , testRegex "xy(?+1)(abc)" [ERROR] ["xyabcabc", "** Failers", "xyabc ", "", "/x(?-0)y/"] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just [" 0: xyabcabc"], Just [" 1: abc"], Nothing, Nothing, Just ["/x(?-0)y/"], Just ["Failed: (?+ or (?- or (?(+ or (?(- must be followed by a non-zero number at offset 5"]] , testRegex "x(?-1)y" [] [] [Just ["Failed: reference to non-existent subpattern at offset 5"]] , testRegex "x(?+0)y" [ERROR] [] [Just ["Failed: (?+ or (?- or (?(+ or (?(- must be followed by a non-zero number at offset 5"]] , testRegex "x(?+1)y" [] [] [Just ["Failed: reference to non-existent subpattern at offset 5"]] , testRegex "^(abc)?(?(-1)X|Y)" [ERROR] ["abcX", "Y", "** Failers", "abcY ", "", "/^((?(+1)X|Y)(abc))+/BZ ", "YabcXabc", "YabcXabcXabc", "** Failers", "XabcXabc "] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just [" 0: abcX"], Just [" 1: abc"], Just [" 0: Y"], Nothing, Nothing, Just ["/^((?(+1)X|Y)(abc))+/BZ "], Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just [" 0: YabcXabc"], Just [" 1: Xabc"], Just [" 2: abc"], Just [" 0: YabcXabcXabc"], Just [" 1: Xabc"], Just [" 2: abc"], Nothing, Nothing] , testRegex "(?(-1)a)" [ERROR] [] [Just ["Failed: reference to non-existent subpattern at offset 6"]] , testRegex "((?(-1)a))" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "((?(-2)a))" [ERROR] [] [Just ["Failed: reference to non-existent subpattern at offset 7"]] , testRegex "^(?(+1)X|Y)" [ERROR] ["Y"] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just [" 0: Y"]] , testRegex "(foo)\\Kbar" [] ["foobar", "", "/(foo)(\\Kbar|baz)/", "foobar", "foobaz "] [Just [" 0: bar"], Just [" 1: foo"], Just ["/(foo)(\\Kbar|baz)/"], Just [" 0: bar"], Just [" 1: foo"], Just [" 2: bar"], Just [" 0: foobaz"], Just [" 1: foo"], Just [" 2: baz"]] , testRegex "(foo\\Kbar)baz" [] ["foobarbaz"] [Just [" 0: barbaz"], Just [" 1: foobar"]] , testRegex "(?tom|bon)-\\k{A}" [] ["tom-tom", "bon-bon ", "** Failers", "tom-bon "] [Just [" 0: tom-tom"], Just [" 1: tom"], Just [" 0: bon-bon"], Just [" 1: bon"], Nothing, Nothing] , testRegex "(?tom|bon)-\\g{A}" [] ["tom-tom", "bon-bon ", "", "/\\g{A/ "] [Just [" 0: tom-tom"], Just [" 1: tom"], Just [" 0: bon-bon"], Just [" 1: bon"], Just ["/\\g{A/ "], Just ["Failed: syntax error in subpattern name (missing terminator) at offset 4"]] , testRegex "(?|(abc)|(xyz))" [ERROR] [">abc<", ">xyz< "] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just [" 0: abc"], Just [" 1: abc"], Just [" 0: xyz"], Just [" 1: xyz"]] , testRegex "(x)(?|(abc)|(xyz))(x)" [ERROR] ["xabcx", "xxyzx "] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just [" 0: xabcx"], Just [" 1: x"], Just [" 2: abc"], Just [" 3: x"], Just [" 0: xxyzx"], Just [" 1: x"], Just [" 2: xyz"], Just [" 3: x"]] , testRegex "(x)(?|(abc)(pqr)|(xyz))(x)" [ERROR] ["xabcpqrx", "xxyzx "] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just [" 0: xabcpqrx"], Just [" 1: x"], Just [" 2: abc"], Just [" 3: pqr"], Just [" 4: x"], Just [" 0: xxyzx"], Just [" 1: x"], Just [" 2: xyz"], Just [" 3: "], Just [" 4: x"]] , testRegex "(?|(abc)|(xyz))\\1" [] ["abcabc", "xyzxyz ", "** Failers", "abcxyz", "xyzabc ", "", "/(?|(abc)|(xyz))(?1)/", "abcabc", "xyzabc ", "** Failers ", "xyzxyz ", "", "/\\H\\h\\V\\v/", "X X\\x0a", "X\\x09X\\x0b", "** Failers", "\\xa0 X\\x0a ", "", "/\\H*\\h+\\V?\\v{3,4}/ ", "\\x09\\x20\\xa0X\\x0a\\x0b\\x0c\\x0d\\x0a", "\\x09\\x20\\xa0\\x0a\\x0b\\x0c\\x0d\\x0a", "\\x09\\x20\\xa0\\x0a\\x0b\\x0c", "** Failers ", "\\x09\\x20\\xa0\\x0a\\x0b", "", "/\\H{3,4}/", "XY ABCDE", "XY PQR ST ", "", "/.\\h{3,4}./", "XY AB PQRS"] [Just [" 0: abcabc"], Just [" 1: abc"], Just [" 0: xyzxyz"], Just [" 1: xyz"], Nothing, Nothing, Nothing, Just ["/(?|(abc)|(xyz))(?1)/"], Just [" 0: abcabc"], Just [" 1: abc"], Just [" 0: xyzabc"], Just [" 1: xyz"], Nothing, Nothing, Just ["/\\H\\h\\V\\v/"], Just [" 0: X X\\x0a"], Just [" 0: X\\x09X\\x0b"], Nothing, Nothing, Just ["/\\H*\\h+\\V?\\v{3,4}/ "], Just [" 0: \\x09 \\xa0X\\x0a\\x0b\\x0c\\x0d"], Just [" 0: \\x09 \\xa0\\x0a\\x0b\\x0c\\x0d"], Just [" 0: \\x09 \\xa0\\x0a\\x0b\\x0c"], Nothing, Nothing, Just ["/\\H{3,4}/"], Just [" 0: ABCD"], Just [" 0: PQR"], Just ["/.\\h{3,4}./"], Just [" 0: B P"]] , testRegex "\\h*X\\h?\\H+Y\\H?Z" [] [">XNNNYZ", "> X NYQZ", "** Failers", ">XYZ ", "> X NY Z"] [Just [" 0: XNNNYZ"], Just [" 0: X NYQZ"], Nothing, Nothing, Nothing] , testRegex "\\v*X\\v?Y\\v+Z\\V*\\x0a\\V+\\x0b\\V{2,3}\\x0c" [] [">XY\\x0aZ\\x0aA\\x0bNN\\x0c", ">\\x0a\\x0dX\\x0aY\\x0a\\x0bZZZ\\x0aAAA\\x0bNNN\\x0c"] [Just [" 0: XY\\x0aZ\\x0aA\\x0bNN\\x0c"], Just [" 0: \\x0a\\x0dX\\x0aY\\x0a\\x0bZZZ\\x0aAAA\\x0bNNN\\x0c"]] , testRegex "[\\h]" [ERROR] [">\\x09<"] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just [" 0: \\x09"]] , testRegex "[\\h]+" [ERROR] [">\\x09\\x20\\xa0<"] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just [" 0: \\x09 \\xa0"]] , testRegex "[\\v]" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "[\\H]" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "[^\\h]" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "[\\V]" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "[\\x0a\\V]" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "\\H++X" [ERROR] ["** Failers", "XXXX", "", "/\\H+\\hY/BZ", "XXXX Y "] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Nothing, Nothing, Just ["/\\H+\\hY/BZ"], Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"], Just [" 0: XXXX Y"]] , testRegex "\\H+ Y" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "\\h+A" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "\\v*B" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "\\V+\\x0a" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "A+\\h" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex " *\\H" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "A*\\v" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "\\x0b*\\V" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "\\d+\\h" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "\\d*\\v" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "S+\\h\\S+\\v" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "\\w{3,}\\h\\w+\\v" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "\\h+\\d\\h+\\w\\h+\\S\\h+\\H" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "\\v+\\d\\v+\\w\\v+\\S\\v+\\V" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "\\H+\\h\\H+\\d" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "\\V+\\v\\V+\\w" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "\\( (?: [^()]* | (?R) )* \\)" [ERROR] ["(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0(0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)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)0)"]] , testRegex "[\\E]AAA" [] [] [Just ["Failed: missing terminating ] for character class at offset 7"]] , testRegex "[\\Q\\E]AAA" [] [] [Just ["Failed: missing terminating ] for character class at offset 9"]] , testRegex "[^\\E]AAA" [] [] [Just ["Failed: missing terminating ] for character class at offset 8"]] , testRegex "[^\\Q\\E]AAA" [] [] [Just ["Failed: missing terminating ] for character class at offset 10"]] , testRegex "[\\E^]AAA" [] [] [Just ["Failed: missing terminating ] for character class at offset 8"]] , testRegex "[\\Q\\E^]AAA" [] [] [Just ["Failed: missing terminating ] for character class at offset 10"]] , testRegex "A(*PRUNE)B(*SKIP)C(*THEN)D(*COMMIT)E(*F)F(*FAIL)G(?!)H(*ACCEPT)I" [ERROR] [] [Just ["------------------------------------------------------------------"], Just ["------------------------------------------------------------------"]] , testRegex "^a+(*FAIL)" [] ["aaaaaa", "", "/a+b?c+(*FAIL)/", "aaabccc"] [Nothing, Just ["/a+b?c+(*FAIL)/"], Nothing] , testRegex "a+b?(*PRUNE)c+(*FAIL)" [] ["aaabccc"] [Nothing] , testRegex "a+b?(*COMMIT)c+(*FAIL)" [] ["aaabccc", "", "/a+b?(*SKIP)c+(*FAIL)/", "aaabcccaaabccc"] [Nothing, Just ["/a+b?(*SKIP)c+(*FAIL)/"], Nothing] , testRegex "^(?:aaa(*THEN)\\w{6}|bbb(*THEN)\\w{5}|ccc(*THEN)\\w{4}|\\w{3})" [] ["aaaxxxxxx", "aaa++++++ ", "bbbxxxxx", "bbb+++++ ", "cccxxxx", "ccc++++ ", "dddddddd "] [Just [" 0: aaaxxxxxx"], Just [" 0: aaa"], Just [" 0: bbbxxxxx"], Just [" 0: bbb"], Just [" 0: cccxxxx"], Just [" 0: ccc"], Just [" 0: ddd"]] , testRegex "^(aaa(*THEN)\\w{6}|bbb(*THEN)\\w{5}|ccc(*THEN)\\w{4}|\\w{3})" [] ["aaaxxxxxx", "aaa++++++ ", "bbbxxxxx", "bbb+++++ ", "cccxxxx", "ccc++++ ", "dddddddd "] [Just [" 0: aaaxxxxxx"], Just [" 1: aaaxxxxxx"], Just [" 0: aaa"], Just [" 1: aaa"], Just [" 0: bbbxxxxx"], Just [" 1: bbbxxxxx"], Just [" 0: bbb"], Just [" 1: bbb"], Just [" 0: cccxxxx"], Just [" 1: cccxxxx"], Just [" 0: ccc"], Just [" 1: ccc"], Just [" 0: ddd"], Just [" 1: ddd"]] , testRegex "a+b?(*THEN)c+(*FAIL)" [] ["aaabccc"] [Nothing] , testRegex "(A (A|B(*ACCEPT)|C) D)(E)" [ERROR] ["ABX", "AADE", "ACDE", "** Failers", "AD ", "", "/^a+(*FAIL)/C", "aaaaaa", "", "/a+b?c+(*FAIL)/C", "aaabccc"] [Just [" 0: AB"], Just [" 0: AADE"], Just [" 1: AAD"], Just [" 2: A"], Just [" 3: E"], Just [" 0: ACDE"], Just [" 1: ACD"], Just [" 2: C"], Just [" 3: E"], Nothing, Nothing, Just ["/^a+(*FAIL)/C"], Just ["--->aaaaaa"], Just [" +0 ^ ^"], Just [" +1 ^ a+"], Just [" +3 ^ ^ (*FAIL)"], Just [" +3 ^ ^ (*FAIL)"], Just [" +3 ^ ^ (*FAIL)"], Just [" +3 ^ ^ (*FAIL)"], Just [" +3 ^ ^ (*FAIL)"], Just [" +3 ^^ (*FAIL)"], Nothing, Just ["/a+b?c+(*FAIL)/C"], Just ["--->aaabccc"], Just [" +0 ^ a+"], Just [" +2 ^ ^ b?"], Just [" +4 ^ ^ c+"], Just [" +6 ^ ^ (*FAIL)"], Just [" +6 ^ ^ (*FAIL)"], Just [" +6 ^ ^ (*FAIL)"], Just [" +4 ^ ^ c+"], Just [" +2 ^ ^ b?"], Just [" +4 ^ ^ c+"], Just [" +2 ^^ b?"], Just [" +4 ^^ c+"], Just [" +0 ^ a+"], Just [" +2 ^ ^ b?"], Just [" +4 ^ ^ c+"], Just [" +6 ^ ^ (*FAIL)"], Just [" +6 ^ ^ (*FAIL)"], Just [" +6 ^ ^ (*FAIL)"], Just [" +4 ^ ^ c+"], Just [" +2 ^^ b?"], Just [" +4 ^^ c+"], Just [" +0 ^ a+"], Just [" +2 ^^ b?"], Just [" +4 ^ ^ c+"], Just [" +6 ^ ^ (*FAIL)"], Just [" +6 ^ ^ (*FAIL)"], Just [" +6 ^ ^ (*FAIL)"], Just [" +4 ^^ c+"], Nothing] , testRegex "a+b?(*PRUNE)c+(*FAIL)" [ERROR] ["aaabccc"] [Just ["--->aaabccc"], Just [" +0 ^ a+"], Just [" +2 ^ ^ b?"], Just [" +4 ^ ^ (*PRUNE)"], Just ["+12 ^ ^ c+"], Just ["+14 ^ ^ (*FAIL)"], Just ["+14 ^ ^ (*FAIL)"], Just ["+14 ^ ^ (*FAIL)"], Just [" +0 ^ a+"], Just [" +2 ^ ^ b?"], Just [" +4 ^ ^ (*PRUNE)"], Just ["+12 ^ ^ c+"], Just ["+14 ^ ^ (*FAIL)"], Just ["+14 ^ ^ (*FAIL)"], Just ["+14 ^ ^ (*FAIL)"], Just [" +0 ^ a+"], Just [" +2 ^^ b?"], Just [" +4 ^ ^ (*PRUNE)"], Just ["+12 ^ ^ c+"], Just ["+14 ^ ^ (*FAIL)"], Just ["+14 ^ ^ (*FAIL)"], Just ["+14 ^ ^ (*FAIL)"], Nothing] , testRegex "a+b?(*COMMIT)c+(*FAIL)" [ERROR] ["aaabccc", "", "/a+b?(*SKIP)c+(*FAIL)/C", "aaabcccaaabccc"] [Just ["--->aaabccc"], Just [" +0 ^ a+"], Just [" +2 ^ ^ b?"], Just [" +4 ^ ^ (*COMMIT)"], Just ["+13 ^ ^ c+"], Just ["+15 ^ ^ (*FAIL)"], Just ["+15 ^ ^ (*FAIL)"], Just ["+15 ^ ^ (*FAIL)"], Nothing, Just ["/a+b?(*SKIP)c+(*FAIL)/C"], Just ["--->aaabcccaaabccc"], Just [" +0 ^ a+"], Just [" +2 ^ ^ b?"], Just [" +4 ^ ^ (*SKIP)"], Just ["+11 ^ ^ c+"], Just ["+13 ^ ^ (*FAIL)"], Just ["+13 ^ ^ (*FAIL)"], Just ["+13 ^ ^ (*FAIL)"], Just [" +0 ^ a+"], Just [" +2 ^ ^ b?"], Just [" +4 ^ ^ (*SKIP)"], Just ["+11 ^ ^ c+"], Just ["+13 ^ ^ (*FAIL)"], Just ["+13 ^ ^ (*FAIL)"], Just ["+13 ^ ^ (*FAIL)"], Nothing] , testRegex "a+b?(*THEN)c+(*FAIL)" [ERROR] ["aaabccc", "", "/a(*PRUNE:XXX)b/"] [Just ["--->aaabccc"], Just [" +0 ^ a+"], Just [" +2 ^ ^ b?"], Just [" +4 ^ ^ (*THEN)"], Just ["+11 ^ ^ c+"], Just ["+13 ^ ^ (*FAIL)"], Just ["+13 ^ ^ (*FAIL)"], Just ["+13 ^ ^ (*FAIL)"], Just [" +0 ^ a+"], Just [" +2 ^ ^ b?"], Just [" +4 ^ ^ (*THEN)"], Just ["+11 ^ ^ c+"], Just ["+13 ^ ^ (*FAIL)"], Just ["+13 ^ ^ (*FAIL)"], Just ["+13 ^ ^ (*FAIL)"], Just [" +0 ^ a+"], Just [" +2 ^^ b?"], Just [" +4 ^ ^ (*THEN)"], Just ["+11 ^ ^ c+"], Just ["+13 ^ ^ (*FAIL)"], Just ["+13 ^ ^ (*FAIL)"], Just ["+13 ^ ^ (*FAIL)"], Nothing, Just ["/a(*PRUNE:XXX)b/"], Just ["Failed: (*VERB) with an argument is not supported at offset 8"]] , testRegex "a(*MARK)b" [ERROR] [] [Just ["Failed: (*VERB) not recognized at offset 7"]] , testRegex "(?i:A{1,}\\6666666666)" [] [] [Just ["Failed: number is too big at offset 19"]] , testRegex "\\g6666666666" [] [] [Just ["Failed: number is too big at offset 11"]] , testRegex "[\\g6666666666]" [] [] [Just ["Failed: number is too big at offset 12"]] , testRegex "(?1)\\c[" [] [] [Just ["Failed: reference to non-existent subpattern at offset 3"]] , testRegex ".+A" [ERROR] ["\\r\\nA", "", "/\\nA/", "\\r\\nA "] [Nothing, Just ["/\\nA/"], Just [" 0: \\x0aA"]] , testRegex "[\\r\\n]A" [ERROR] ["\\r\\nA "] [Just [" 0: \\x0aA"]] , testRegex "(\\r|\\n)A" [ERROR] ["\\r\\nA "] [Just [" 0: \\x0aA"], Just [" 1: \\x0a"]] , testRegex "a(*CR)b" [] [] [Just ["Failed: (*VERB) not recognized at offset 5"]] , testRegex "(*CR)a.b" [] ["a\\nb", "** Failers", "a\\rb "] [Just [" 0: a\\x0ab"], Nothing, Nothing] , testRegex "(*CR)a.b" [ERROR] ["a\\nb", "** Failers", "a\\rb "] [Just [" 0: a\\x0ab"], Nothing, Nothing] , testRegex "(*LF)a.b" [ERROR] ["a\\rb", "** Failers", "a\\nb "] [Just [" 0: a\\x0db"], Nothing, Nothing] , testRegex "(*CRLF)a.b" [] ["a\\rb", "a\\nb ", "** Failers", "a\\r\\nb "] [Just [" 0: a\\x0db"], Just [" 0: a\\x0ab"], Nothing, Nothing] , testRegex "(*ANYCRLF)a.b" [ERROR] ["** Failers", "a\\rb", "a\\nb ", "a\\r\\nb "] [Nothing, Nothing, Nothing, Nothing] , testRegex "(*ANY)a.b" [ERROR] ["** Failers", "a\\rb", "a\\nb ", "a\\r\\nb ", "a\\x85b "] [Nothing, Nothing, Nothing, Nothing, Nothing] , testRegex "a\\Rb" [ERROR] ["a\\rb", "a\\nb", "a\\r\\nb", "** Failers", "a\\x85b", "a\\x0bb "] [Just ["Capturing subpattern count = 0"], Just ["Options: bsr_anycrlf"], Just ["First char = 'a'"], Just ["Need char = 'b'"], Just [" 0: a\\x0db"], Just [" 0: a\\x0ab"], Just [" 0: a\\x0d\\x0ab"], Nothing, Nothing, Nothing] , testRegex "a\\Rb" [ERROR] ["a\\rb", "a\\nb", "a\\r\\nb", "a\\x85b", "a\\x0bb ", "** Failers ", "a\\x85b\\", "a\\x0bb\\", "", "/a\\R?b/I", "a\\rb", "a\\nb", "a\\r\\nb", "** Failers", "a\\x85b", "a\\x0bb "] [Just ["Capturing subpattern count = 0"], Just ["Options: bsr_unicode"], Just ["First char = 'a'"], Just ["Need char = 'b'"], Just [" 0: a\\x0db"], Just [" 0: a\\x0ab"], Just [" 0: a\\x0d\\x0ab"], Just [" 0: a\\x85b"], Just [" 0: a\\x0bb"], Nothing, Nothing, Nothing, Just ["/a\\R?b/I"], Just ["Capturing subpattern count = 0"], Just ["Options: bsr_anycrlf"], Just ["First char = 'a'"], Just ["Need char = 'b'"], Just [" 0: a\\x0db"], Just [" 0: a\\x0ab"], Just [" 0: a\\x0d\\x0ab"], Nothing, Nothing, Nothing] , testRegex "a\\R?b" [ERROR] ["a\\rb", "a\\nb", "a\\r\\nb", "a\\x85b", "a\\x0bb ", "** Failers ", "a\\x85b\\", "a\\x0bb\\", "", "/a\\R{2,4}b/I", "a\\r\\n\\nb", "a\\n\\r\\rb", "a\\r\\n\\r\\n\\r\\n\\r\\nb", "** Failers", "a\\x85\\85b", "a\\x0b\\0bb "] [Just ["Capturing subpattern count = 0"], Just ["Options: bsr_unicode"], Just ["First char = 'a'"], Just ["Need char = 'b'"], Just [" 0: a\\x0db"], Just [" 0: a\\x0ab"], Just [" 0: a\\x0d\\x0ab"], Just [" 0: a\\x85b"], Just [" 0: a\\x0bb"], Nothing, Nothing, Nothing, Just ["/a\\R{2,4}b/I"], Just ["Capturing subpattern count = 0"], Just ["Partial matching not supported"], Just ["Options: bsr_anycrlf"], Just ["First char = 'a'"], Just ["Need char = 'b'"], Just [" 0: a\\x0d\\x0a\\x0ab"], Just [" 0: a\\x0a\\x0d\\x0db"], Just [" 0: a\\x0d\\x0a\\x0d\\x0a\\x0d\\x0a\\x0d\\x0ab"], Nothing, Nothing, Nothing] , testRegex "a\\R{2,4}b" [ERROR] ["a\\r\\rb", "a\\n\\n\\nb", "a\\r\\n\\n\\r\\rb", "a\\x85\\85b", "a\\x0b\\0bb ", "** Failers ", "a\\r\\r\\r\\r\\rb ", "a\\x85\\85b\\", "a\\x0b\\0bb\\", "", "/(*BSR_ANYCRLF)a\\Rb/I", "a\\nb", "a\\rb "] [Just ["Capturing subpattern count = 0"], Just ["Partial matching not supported"], Just ["Options: bsr_unicode"], Just ["First char = 'a'"], Just ["Need char = 'b'"], Just [" 0: a\\x0d\\x0db"], Just [" 0: a\\x0a\\x0a\\x0ab"], Just [" 0: a\\x0d\\x0a\\x0a\\x0d\\x0db"], Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Just ["/(*BSR_ANYCRLF)a\\Rb/I"], Just ["Capturing subpattern count = 0"], Just ["Options: bsr_anycrlf"], Just ["First char = 'a'"], Just ["Need char = 'b'"], Just [" 0: a\\x0ab"], Just [" 0: a\\x0db"]] , testRegex "(*BSR_UNICODE)a\\Rb" [ERROR] ["a\\x85b"] [Just ["Capturing subpattern count = 0"], Just ["Options: bsr_unicode"], Just ["First char = 'a'"], Just ["Need char = 'b'"], Just [" 0: a\\x85b"]] , testRegex "(*BSR_ANYCRLF)(*CRLF)a\\Rb" [ERROR] ["a\\nb", "a\\rb "] [Just ["Capturing subpattern count = 0"], Just ["Options: bsr_anycrlf"], Just ["Forced newline sequence: CRLF"], Just ["First char = 'a'"], Just ["Need char = 'b'"], Just [" 0: a\\x0ab"], Just [" 0: a\\x0db"]] , testRegex "(*CRLF)(*BSR_UNICODE)a\\Rb" [ERROR] ["a\\x85b"] [Just ["Capturing subpattern count = 0"], Just ["Options: bsr_unicode"], Just ["Forced newline sequence: CRLF"], Just ["First char = 'a'"], Just ["Need char = 'b'"], Just [" 0: a\\x85b"]] , testRegex "(*CRLF)(*BSR_ANYCRLF)(*CR)ab" [ERROR] [] [Just ["Capturing subpattern count = 0"], Just ["Options: bsr_anycrlf"], Just ["Forced newline sequence: CR"], Just ["First char = 'a'"], Just ["Need char = 'b'"]] , testRegex " End of testinput2 " [] [] []