--- code/trunk/testoutput2 2007/02/24 21:38:13 9 +++ code/trunk/testoutput2 2007/02/24 21:38:33 19 @@ -1,5 +1,5 @@ Testing Perl-Compatible Regular Expressions -PCRE version 1.03 18-Dec-1997 +PCRE version 1.08 27-Mar-1998 /(a)b|/ Identifying subpattern count = 1 @@ -85,6 +85,9 @@ /ab\gdef/X Failed: unrecognized character follows \ at offset 3 +/(?X)ab\gdef/X +Failed: unrecognized character follows \ at offset 7 + /x{5,4}/ Failed: numbers out of order in {} quantifier at offset 5 @@ -353,6 +356,13 @@ /this/is/a/very/long/line/in/deed/with/very/many/slashes/in/it/you/see/ No match +"(?X).*/\Xfoo" +Identifying subpattern count = 0 +Options: anchored extra +No first char + /this/is/a/very/long/line/in/deed/with/very/many/slashes/in/it/you/see/ +No match + ".*/\Xfoo"X Identifying subpattern count = 0 Options: anchored extra @@ -360,6 +370,13 @@ /this/is/a/very/long/line/in/deed/with/very/many/slashes/in/and/foo 0: /this/is/a/very/long/line/in/deed/with/very/many/slashes/in/and/foo +"(?X).*/\Xfoo" +Identifying subpattern count = 0 +Options: anchored extra +No first char + /this/is/a/very/long/line/in/deed/with/very/many/slashes/in/and/foo + 0: /this/is/a/very/long/line/in/deed/with/very/many/slashes/in/and/foo + /(\.\d\d[1-9]?)\d+/ Identifying subpattern count = 1 No options @@ -605,6 +622,97 @@ /a[]b/ Failed: missing terminating ] for character class at offset 4 +/[^a]/ +Identifying subpattern count = 0 +No options +No first char + \Iaaaabcd + 0: b + \IaaAabcd + 0: b + +/[^az]/ +Identifying subpattern count = 0 +No options +No first char + \Iaaaabcd + 0: b + \IaaAabcd + 0: b + +/[^az]/ +Identifying subpattern count = 0 +No options +No first char + \Izazabcd + 0: b + \IAaZabcd + 0: b + +/[^aeiou ]{3,}/ +Identifying subpattern count = 0 +No options +No first char + co-processors, and for + 0: -pr + \Ico-processors, and for + 0: -pr + +/((a)*)*/ +Failed: operand of unlimited repeat could match the empty string at offset 6 + +/((a|b|c)*)*/ +Failed: operand of unlimited repeat could match the empty string at offset 10 + +/<.*>/ +Identifying subpattern count = 0 +No options +First char = '<' + abcghinop + 0: ghi + +/<.*?>/ +Identifying subpattern count = 0 +No options +First char = '<' + abcghinop + 0: + +/<.*>/U +Identifying subpattern count = 0 +Options: ungreedy +First char = '<' + abcghinop + 0: + +/<.*>(?U)/ +Identifying subpattern count = 0 +Options: ungreedy +First char = '<' + abcghinop + 0: + +/<.*?>/U +Identifying subpattern count = 0 +Options: ungreedy +First char = '<' + abcghinop + 0: ghi + +/={3,}/U +Identifying subpattern count = 0 +Options: ungreedy +First char = '=' + abc========def + 0: === + +/(?U)={3,}?/ +Identifying subpattern count = 0 +Options: ungreedy +First char = '=' + abc========def + 0: ======== + / End of test input / Identifying subpattern count = 0 No options