pcre-light-0.1: tests/testdata/regex3.tests
testRegex "^[\\w]+" []
["*** Failers",
"\201cole"]
[Nothing,
Nothing]
,
testRegex "^[\\w]+" [ERROR]
["\201cole"]
[Just [" 0: \201cole"]]
,
testRegex "^[\\w]+" []
["*** Failers",
"\201cole"]
[Nothing,
Nothing]
,
testRegex "^[\\W]+" []
["\201cole"]
[Just [" 0: \\xc9"]]
,
testRegex "^[\\W]+" [ERROR]
["*** Failers",
"\201cole"]
[Just [" 0: *** "],
Nothing]
,
testRegex "[\\b]" []
["\\b",
"*** Failers",
"a"]
[Just [" 0: \\x08"],
Nothing,
Nothing]
,
testRegex "[\\b]" [ERROR]
["\\b",
"*** Failers",
"a"]
[Just [" 0: \\x08"],
Nothing,
Nothing]
,
testRegex "^\\w+" []
["*** Failers",
"\201cole"]
[Nothing,
Nothing]
,
testRegex "^\\w+" [ERROR]
["\201cole"]
[Just [" 0: \201cole"]]
,
testRegex "(.+)\\b(.+)" []
["\201cole"]
[Just [" 0: \\xc9cole"],
Just [" 1: \\xc9"],
Just [" 2: cole"]]
,
testRegex "(.+)\\b(.+)" [ERROR]
["*** Failers",
"\201cole"]
[Just [" 0: *** Failers"],
Just [" 1: *** "],
Just [" 2: Failers"],
Nothing]
,
testRegex "\201cole" [caseless]
["\201cole",
"*** Failers",
"\233cole"]
[Just [" 0: \\xc9cole"],
Nothing,
Nothing]
,
testRegex "\201cole" [ERROR]
["\201cole",
"\233cole"]
[Just [" 0: \201cole"],
Just [" 0: \233cole"]]
,
testRegex "\\w" [ERROR]
[]
[Just ["Capturing subpattern count = 0"],
Just ["No options"],
Just ["No first char"],
Just ["No need char"],
Just ["Starting byte set: 0 1 2 3 4 5 6 7 8 9 A B C D E F G H I J K L M N O P "]]
,
testRegex "\\w" [ERROR]
[]
[Just ["Capturing subpattern count = 0"],
Just ["No options"],
Just ["No first char"],
Just ["No need char"],
Just ["Starting byte set: 0 1 2 3 4 5 6 7 8 9 A B C D E F G H I J K L M N O P "]]
,
testRegex "^[\\xc8-\\xc9]" [ERROR]
["\201cole",
"\233cole"]
[Just [" 0: \201"],
Just [" 0: \233"]]
,
testRegex "^[\\xc8-\\xc9]" [ERROR]
["\201cole",
"*** Failers ",
"\233cole"]
[Just [" 0: \201"],
Nothing,
Nothing]
,
testRegex "\\W+" [ERROR]
[">>>\\xaa<<<",
">>>\\xba<<< "]
[Just [" 0: >>>"],
Just [" 0: >>>"]]
,
testRegex "[\\W]+" [ERROR]
[">>>\\xaa<<<",
">>>\\xba<<< "]
[Just [" 0: >>>"],
Just [" 0: >>>"]]
,
testRegex "[^[:alpha:]]+" [ERROR]
[">>>\\xaa<<<",
">>>\\xba<<< "]
[Just [" 0: >>>"],
Just [" 0: >>>"]]
,
testRegex "\\w+" [ERROR]
[">>>\\xaa<<<",
">>>\\xba<<< "]
[Just [" 0: \170"],
Just [" 0: \186"]]
,
testRegex "[\\w]+" [ERROR]
[">>>\\xaa<<<",
">>>\\xba<<< "]
[Just [" 0: \170"],
Just [" 0: \186"]]
,
testRegex "[[:alpha:]]+" [ERROR]
[">>>\\xaa<<<",
">>>\\xba<<< ",
"",
"/[[:alpha:]][[:lower:]][[:upper:]]/DZLfr_FR "]
[Just [" 0: \170"],
Just [" 0: \186"],
Just ["/[[:alpha:]][[:lower:]][[:upper:]]/DZLfr_FR "],
Just ["------------------------------------------------------------------"],
Just ["------------------------------------------------------------------"],
Just ["Capturing subpattern count = 0"],
Just ["No options"],
Just ["No first char"],
Just ["No need char"]]
,
testRegex " End of testinput3 " []
[]
[]