/[pcre]/code/trunk/testdata/testinput2
ViewVC logotype

Diff of /code/trunk/testdata/testinput2

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 51 by nigel, Sat Feb 24 21:39:37 2007 UTC revision 87 by nigel, Sat Feb 24 21:41:21 2007 UTC
# Line 38  Line 38 
38    
39  /[abcd/  /[abcd/
40    
41  /[\B]/  /(?X)[\B]/
42    
43  /[z-a]/  /[z-a]/
44    
# Line 173  Line 173 
173  /<.*>/U  /<.*>/U
174      abc<def>ghi<klm>nop      abc<def>ghi<klm>nop
175    
176  /<.*>(?U)/  /(?U)<.*>/
177      abc<def>ghi<klm>nop      abc<def>ghi<klm>nop
178    
179  /<.*?>/U  /<.*?>/U
# Line 266  Line 266 
266  /(?!alphabet)[ab]/S  /(?!alphabet)[ab]/S
267    
268  /(?<=foo\n)^bar/m  /(?<=foo\n)^bar/m
269        foo\nbarbar
270        ***Failers
271        rhubarb
272        barbell
273        abc\nbarton
274    
275    /^(?<=foo\n)bar/m
276        foo\nbarbar
277        ***Failers
278        rhubarb
279        barbell
280        abc\nbarton
281    
282  /(?>^abc)/m  /(?>^abc)/m
283      abc      abc
# Line 654  Line 666 
666    
667  /^[[:alnum:]]/D  /^[[:alnum:]]/D
668    
669    /^[[:^alnum:]]/D
670    
671  /^[[:alpha:]]/D  /^[[:alpha:]]/D
672    
673    /^[[:^alpha:]]/D
674    
675    /[_[:alpha:]]/IS
676    
677  /^[[:ascii:]]/D  /^[[:ascii:]]/D
678    
679    /^[[:^ascii:]]/D
680    
681    /^[[:blank:]]/D
682    
683    /^[[:^blank:]]/D
684    
685    /[\n\x0b\x0c\x0d[:blank:]]/IS
686    
687  /^[[:cntrl:]]/D  /^[[:cntrl:]]/D
688    
689  /^[[:digit:]]/D  /^[[:digit:]]/D
# Line 682  Line 708 
708    
709  /^[12[:^digit:]]/D  /^[12[:^digit:]]/D
710    
711    /^[[:^blank:]]/D
712    
713  /[01[:alpha:]%]/D  /[01[:alpha:]%]/D
714    
715  /[[.ch.]]/  /[[.ch.]]/
# Line 709  Line 737 
737    
738  /^(?(0)f|b)oo/  /^(?(0)f|b)oo/
739    
740    /This one's here because of the large output vector needed/
741    
742    /(\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+(?:\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+(?:\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|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\w+)\s+(\270)/
743        \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
744    
745    /This one's here because Perl does this differently and PCRE can't at present/
746    
747    /(main(O)?)+/
748        mainmain
749        mainOmain
750    
751    /These are all cases where Perl does it differently (nested captures)/
752    
753    /^(a(b)?)+$/
754        aba
755    
756    /^(aa(bb)?)+$/
757        aabbaa
758    
759    /^(aa|aa(bb))+$/
760        aabbaa
761    
762    /^(aa(bb)??)+$/
763        aabbaa
764    
765    /^(?:aa(bb)?)+$/
766        aabbaa
767    
768    /^(aa(b(b))?)+$/
769        aabbaa
770    
771    /^(?:aa(b(b))?)+$/
772        aabbaa
773    
774    /^(?:aa(b(?:b))?)+$/
775        aabbaa
776    
777    /^(?:aa(bb(?:b))?)+$/
778        aabbbaa
779    
780    /^(?:aa(b(?:bb))?)+$/
781        aabbbaa
782    
783    /^(?:aa(?:b(b))?)+$/
784        aabbaa
785    
786    /^(?:aa(?:b(bb))?)+$/
787        aabbbaa
788    
789    /^(aa(b(bb))?)+$/
790        aabbbaa
791    
792    /^(aa(bb(bb))?)+$/
793        aabbbbaa
794    
795    /--------------------------------------------------------------------/
796    
797    /#/xMD
798    
799    /a#/xMD
800    
801    /[\s]/D
802    
803    /[\S]/D
804    
805    /a(?i)b/D
806        ab
807        aB
808        *** Failers
809        AB
810    
811    /(a(?i)b)/D
812        ab
813        aB
814        *** Failers
815        AB
816    
817    /   (?i)abc/xD
818    
819    /#this is a comment
820      (?i)abc/xD
821    
822    /123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890/D
823    
824    /\Q123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890/D
825    
826    /\Q\E/D
827        \
828    
829    /\Q\Ex/D
830    
831    / \Q\E/D
832    
833    /a\Q\E/D
834      abc
835      bca
836      bac
837    
838    /a\Q\Eb/D
839      abc
840    
841    /\Q\Eabc/D
842    
843    /x*+\w/D
844        *** Failers
845        xxxxx
846    
847    /x?+/D
848    
849    /x++/D
850    
851    /x{1,3}+/D
852    
853    /(x)*+/D
854    
855    /^(\w++|\s++)*$/
856        now is the time for all good men to come to the aid of the party
857        *** Failers
858        this is not a line with only words and spaces!
859    
860    /(\d++)(\w)/
861        12345a
862        *** Failers
863        12345+
864    
865    /a++b/
866        aaab
867    
868    /(a++b)/
869        aaab
870    
871    /(a++)b/
872        aaab
873    
874    /([^()]++|\([^()]*\))+/
875        ((abc(ade)ufh()()x
876    
877    /\(([^()]++|\([^()]+\))+\)/
878        (abc)
879        (abc(def)xyz)
880        *** Failers
881        ((()aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
882    
883    /(abc){1,3}+/D
884    
885    /a+?+/
886    
887    /a{2,3}?+b/
888    
889    /(?U)a+?+/
890    
891    /a{2,3}?+b/U
892    
893    /x(?U)a++b/D
894        xaaaab
895    
896    /(?U)xa++b/D
897        xaaaab
898    
899    /^((a+)(?U)([ab]+)(?-U)([bc]+)(\w*))/D
900    
901    /^x(?U)a+b/D
902    
903    /^x(?U)(a+)b/D
904    
905    /[.x.]/
906    
907    /[=x=]/
908    
909    /[:x:]/
910    
911    /\l/
912    
913    /\L/
914    
915    /\N{name}/
916    
917    /\u/
918    
919    /\U/
920    
921    /[/
922    
923    /[a-/
924    
925    /[[:space:]/
926    
927    /[\s]/DM
928    
929    /[[:space:]]/DM
930    
931    /[[:space:]abcde]/DM
932    
933    /< (?: (?(R) \d++  | [^<>]*+) | (?R)) * >/x
934        <>
935        <abcd>
936        <abc <123> hij>
937        <abc <def> hij>
938        <abc<>def>
939        <abc<>
940        *** Failers
941        <abc
942    
943    |8J\$WE\<\.rX\+ix\[d1b\!H\#\?vV0vrK\:ZH1\=2M\>iV\;\?aPhFB\<\*vW\@QW\@sO9\}cfZA\-i\'w\%hKd6gt1UJP\,15_\#QY\$M\^Mss_U\/\]\&LK9\[5vQub\^w\[KDD\<EjmhUZ\?\.akp2dF\>qmj\;2\}YWFdYx\.Ap\]hjCPTP\(n28k\+3\;o\&WXqs\/gOXdr\$\:r\'do0\;b4c\(f_Gr\=\"\\4\)\[01T7ajQJvL\$W\~mL_sS\/4h\:x\*\[ZN\=KLs\&L5zX\/\/\>it\,o\:aU\(\;Z\>pW\&T7oP\'2K\^E\:x9\'c\[\%z\-\,64JQ5AeH_G\#KijUKghQw\^\\vea3a\?kka_G\$8\#\`\*kynsxzBLru\'\]k_\[7FrVx\}\^\=\$blx\>s\-N\%j\;D\*aZDnsw\:YKZ\%Q\.Kne9\#hP\?\+b3\(SOvL\,\^\;\&u5\@\?5C5Bhb\=m\-vEh_L15Jl\]U\)0RP6\{q\%L\^_z5E\'Dw6X\b|DM
944    
945    |\$\<\.X\+ix\[d1b\!H\#\?vV0vrK\:ZH1\=2M\>iV\;\?aPhFB\<\*vW\@QW\@sO9\}cfZA\-i\'w\%hKd6gt1UJP\,15_\#QY\$M\^Mss_U\/\]\&LK9\[5vQub\^w\[KDD\<EjmhUZ\?\.akp2dF\>qmj\;2\}YWFdYx\.Ap\]hjCPTP\(n28k\+3\;o\&WXqs\/gOXdr\$\:r\'do0\;b4c\(f_Gr\=\"\\4\)\[01T7ajQJvL\$W\~mL_sS\/4h\:x\*\[ZN\=KLs\&L5zX\/\/\>it\,o\:aU\(\;Z\>pW\&T7oP\'2K\^E\:x9\'c\[\%z\-\,64JQ5AeH_G\#KijUKghQw\^\\vea3a\?kka_G\$8\#\`\*kynsxzBLru\'\]k_\[7FrVx\}\^\=\$blx\>s\-N\%j\;D\*aZDnsw\:YKZ\%Q\.Kne9\#hP\?\+b3\(SOvL\,\^\;\&u5\@\?5C5Bhb\=m\-vEh_L15Jl\]U\)0RP6\{q\%L\^_z5E\'Dw6X\b|DM
946    
947    /(.*)\d+\1/I
948    
949    /(.*)\d+/I
950    
951    /(.*)\d+\1/Is
952    
953    /(.*)\d+/Is
954    
955    /(.*(xyz))\d+\2/I
956    
957    /((.*))\d+\1/I
958        abc123bc
959    
960    /a[b]/I
961    
962    /(?=a).*/I
963    
964    /(?=abc).xyz/iI
965    
966    /(?=abc)(?i).xyz/I
967    
968    /(?=a)(?=b)/I
969    
970    /(?=.)a/I
971    
972    /((?=abcda)a)/I
973    
974    /((?=abcda)ab)/I
975    
976    /()a/I
977    
978    /(?(1)ab|ac)/I
979    
980    /(?(1)abz|acz)/I
981    
982    /(?(1)abz)/I
983    
984    /(?(1)abz)123/I
985    
986    /(a)+/I
987    
988    /(a){2,3}/I
989    
990    /(a)*/I
991    
992    /[a]/I
993    
994    /[ab]/I
995    
996    /[ab]/IS
997    
998    /[^a]/I
999    
1000    /\d456/I
1001    
1002    /\d456/IS
1003    
1004    /a^b/I
1005    
1006    /^a/mI
1007      abcde
1008      xy\nabc
1009      *** Failers
1010      xyabc
1011    
1012    /c|abc/I
1013    
1014    /(?i)[ab]/IS
1015    
1016    /[ab](?i)cd/IS
1017    
1018    /abc(?C)def/
1019        abcdef
1020        1234abcdef
1021        *** Failers
1022        abcxyz
1023        abcxyzf
1024    
1025    /abc(?C)de(?C1)f/
1026        123abcdef
1027    
1028    /(?C1)\dabc(?C2)def/
1029        1234abcdef
1030        *** Failers
1031        abcdef
1032    
1033    /(?C255)ab/
1034    
1035    /(?C256)ab/
1036    
1037    /(?Cab)xx/
1038    
1039    /(?C12vr)x/
1040    
1041    /abc(?C)def/
1042        *** Failers
1043        \x83\x0\x61bcdef
1044    
1045    /(abc)(?C)de(?C1)f/
1046        123abcdef
1047        123abcdef\C+
1048        123abcdef\C-
1049        *** Failers
1050        123abcdef\C!1
1051    
1052    /(?C0)(abc(?C1))*/
1053        abcabcabc
1054        abcabc\C!1!3
1055        *** Failers
1056        abcabcabc\C!1!3
1057    
1058    /(\d{3}(?C))*/
1059        123\C+
1060        123456\C+
1061        123456789\C+
1062    
1063    /((xyz)(?C)p|(?C1)xyzabc)/
1064        xyzabc\C+
1065    
1066    /(X)((xyz)(?C)p|(?C1)xyzabc)/
1067        Xxyzabc\C+
1068    
1069    /(?=(abc))(?C)abcdef/
1070        abcdef\C+
1071    
1072    /(?!(abc)(?C1)d)(?C2)abcxyz/
1073        abcxyz\C+
1074    
1075    /(?<=(abc)(?C))xyz/
1076       abcxyz\C+
1077    
1078    /a(b+)(c*)(?C1)/
1079        abbbbbccc\C*1
1080    
1081    /a(b+?)(c*?)(?C1)/
1082        abbbbbccc\C*1
1083    
1084    /(?C)abc/
1085    
1086    /(?C)^abc/
1087    
1088    /(?C)a|b/S
1089    
1090    /(?R)/
1091    
1092    /(a|(?R))/
1093    
1094    /(ab|(bc|(de|(?R))))/
1095    
1096    /x(ab|(bc|(de|(?R))))/
1097        xab
1098        xbc
1099        xde
1100        xxab
1101        xxxab
1102        *** Failers
1103        xyab
1104    
1105    /(ab|(bc|(de|(?1))))/
1106    
1107    /x(ab|(bc|(de|(?1)x)x)x)/
1108    
1109    /^([^()]|\((?1)*\))*$/
1110        abc
1111        a(b)c
1112        a(b(c))d
1113        *** Failers)
1114        a(b(c)d
1115    
1116    /^>abc>([^()]|\((?1)*\))*<xyz<$/
1117       >abc>123<xyz<
1118       >abc>1(2)3<xyz<
1119       >abc>(1(2)3)<xyz<
1120    
1121    /(a(?1)b)/D
1122    
1123    /(a(?1)+b)/D
1124    
1125    /^\W*(?:((.)\W*(?1)\W*\2|)|((.)\W*(?3)\W*\4|\W*.\W*))\W*$/i
1126        1221
1127        Satan, oscillate my metallic sonatas!
1128        A man, a plan, a canal: Panama!
1129        Able was I ere I saw Elba.
1130        *** Failers
1131        The quick brown fox
1132    
1133    /^(\d+|\((?1)([+*-])(?1)\)|-(?1))$/
1134        12
1135        (((2+2)*-3)-7)
1136        -12
1137        *** Failers
1138        ((2+2)*-3)-7)
1139    
1140    /^(x(y|(?1){2})z)/
1141        xyz
1142        xxyzxyzz
1143        *** Failers
1144        xxyzz
1145        xxyzxyzxyzz
1146    
1147    /((< (?: (?(R) \d++  | [^<>]*+) | (?2)) * >))/x
1148        <>
1149        <abcd>
1150        <abc <123> hij>
1151        <abc <def> hij>
1152        <abc<>def>
1153        <abc<>
1154        *** Failers
1155        <abc
1156    
1157    /(?1)/
1158    
1159    /((?2)(abc)/
1160    
1161    /^(abc)def(?1)/
1162        abcdefabc
1163    
1164    /^(a|b|c)=(?1)+/
1165        a=a
1166        a=b
1167        a=bc
1168    
1169    /^(a|b|c)=((?1))+/
1170        a=a
1171        a=b
1172        a=bc
1173    
1174    /a(?P<name1>b|c)d(?P<longername2>e)/D
1175        abde
1176        acde
1177    
1178    /(?:a(?P<c>c(?P<d>d)))(?P<a>a)/D
1179    
1180    /(?P<a>a)...(?P=a)bbb(?P>a)d/D
1181    
1182    /^\W*(?:(?P<one>(?P<two>.)\W*(?P>one)\W*(?P=two)|)|(?P<three>(?P<four>.)\W*(?P>three)\W*(?P=four)|\W*.\W*))\W*$/i
1183        1221
1184        Satan, oscillate my metallic sonatas!
1185        A man, a plan, a canal: Panama!
1186        Able was I ere I saw Elba.
1187        *** Failers
1188        The quick brown fox
1189    
1190    /((?(R)a|b))\1(?1)?/
1191      bb
1192      bbaa
1193    
1194    /(.*)a/sI
1195    
1196    /(.*)a\1/sI
1197    
1198    /(.*)a(b)\2/sI
1199    
1200    /((.*)a|(.*)b)z/sI
1201    
1202    /((.*)a|(.*)b)z\1/sI
1203    
1204    /((.*)a|(.*)b)z\2/sI
1205    
1206    /((.*)a|(.*)b)z\3/sI
1207    
1208    /((.*)a|^(.*)b)z\3/sI
1209    
1210    /(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)a/sI
1211    
1212    /(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)a\31/sI
1213    
1214    /(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)a\32/sI
1215    
1216    /(a)(bc)/ND
1217      abc
1218    
1219    /(?P<one>a)(bc)/ND
1220      abc
1221    
1222    /(a)(?P<named>bc)/ND
1223    
1224    /(a+)*zz/
1225      aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaazzbbbbbb\M
1226      aaaaaaaaaaaaaz\M
1227    
1228    /(aaa(?C1)bbb|ab)/
1229       aaabbb
1230       aaabbb\C*0
1231       aaabbb\C*1
1232       aaabbb\C*-1
1233    
1234    /ab(?P<one>cd)ef(?P<two>gh)/
1235        abcdefgh
1236        abcdefgh\C1\Gtwo
1237        abcdefgh\Cone\Ctwo
1238        abcdefgh\Cthree
1239    
1240    /(?P<Tes>)(?P<Test>)/D
1241    
1242    /(?P<Test>)(?P<Tes>)/D
1243    
1244    /(?P<Z>zz)(?P<A>aa)/
1245        zzaa\CZ
1246        zzaa\CA
1247    
1248    /(?P<x>eks)(?P<x>eccs)/
1249    
1250    /(?P<abc>abc(?P<def>def)(?P<abc>xyz))/
1251    
1252    "\[((?P<elem>\d+)(,(?P>elem))*)\]"
1253        [10,20,30,5,5,4,4,2,43,23,4234]
1254        *** Failers
1255        []
1256    
1257    "\[((?P<elem>\d+)(,(?P>elem))*)?\]"
1258        [10,20,30,5,5,4,4,2,43,23,4234]
1259        []
1260    
1261    /(a(b(?2)c))?/D
1262    
1263    /(a(b(?2)c))*/D
1264    
1265    /(a(b(?2)c)){0,2}/D
1266    
1267    /[ab]{1}+/D
1268    
1269    /((w\/|-|with)*(free|immediate)*.*?shipping\s*[!.-]*)/i
1270         Baby Bjorn Active Carrier - With free SHIPPING!!
1271    
1272    /((w\/|-|with)*(free|immediate)*.*?shipping\s*[!.-]*)/iS
1273         Baby Bjorn Active Carrier - With free SHIPPING!!
1274    
1275    /a*.*b/SD
1276    
1277    /(a|b)*.?c/SD
1278    
1279    /abc(?C255)de(?C)f/D
1280    
1281    /abcde/CD
1282      abcde
1283      abcdfe
1284    
1285    /a*b/CD
1286      ab
1287      aaaab
1288      aaaacb
1289    
1290    /a+b/CD
1291      ab
1292      aaaab
1293      aaaacb
1294    
1295    /(abc|def)x/CD
1296      abcx
1297      defx
1298      abcdefzx
1299    
1300    /(ab|cd){3,4}/C
1301      ababab
1302      abcdabcd
1303      abcdcdcdcdcd
1304    
1305    /([ab]{,4}c|xy)/CD
1306        Note: that { does NOT introduce a quantifier
1307    
1308    /([ab]{1,4}c|xy){4,5}?123/CD
1309        aacaacaacaacaac123
1310    
1311    /\b.*/I
1312      ab cd\>1
1313    
1314    /\b.*/Is
1315      ab cd\>1
1316    
1317    /(?!.bcd).*/I
1318      Xbcd12345
1319    
1320    /abcde/
1321        ab\P
1322        abc\P
1323        abcd\P
1324        abcde\P
1325        the quick brown abc\P
1326        ** Failers\P
1327        the quick brown abxyz fox\P
1328    
1329    "^(0?[1-9]|[12][0-9]|3[01])/(0?[1-9]|1[012])/(20)?\d\d$"
1330        13/05/04\P
1331        13/5/2004\P
1332        02/05/09\P
1333        1\P
1334        1/2\P
1335        1/2/0\P
1336        1/2/04\P
1337        0\P
1338        02/\P
1339        02/0\P
1340        02/1\P
1341        ** Failers\P
1342        \P
1343        123\P
1344        33/4/04\P
1345        3/13/04\P
1346        0/1/2003\P
1347        0/\P
1348        02/0/\P
1349        02/13\P
1350    
1351    /0{0,2}ABC/I
1352    
1353    /\d{3,}ABC/I
1354    
1355    /\d*ABC/I
1356    
1357    /[abc]+DE/I
1358    
1359    /[abc]?123/
1360        123\P
1361        a\P
1362        b\P
1363        c\P
1364        c12\P
1365        c123\P
1366    
1367    /^(?:\d){3,5}X/
1368        1\P
1369        123\P
1370        123X
1371        1234\P
1372        1234X
1373        12345\P
1374        12345X
1375        *** Failers
1376        1X
1377        123456\P
1378    
1379    /abc/>testsavedregex
1380    <testsavedregex
1381        abc
1382        ** Failers
1383        bca
1384    
1385    /abc/F>testsavedregex
1386    <testsavedregex
1387        abc
1388        ** Failers
1389        bca
1390    
1391    /(a|b)/S>testsavedregex
1392    <testsavedregex
1393        abc
1394        ** Failers
1395        def
1396    
1397    /(a|b)/SF>testsavedregex
1398    <testsavedregex
1399        abc
1400        ** Failers
1401        def
1402    
1403    ~<(\w+)/?>(.)*</(\1)>~smg
1404        <!DOCTYPE seite SYSTEM "http://www.lco.lineas.de/xmlCms.dtd">\n<seite>\n<dokumenteninformation>\n<seitentitel>Partner der LCO</seitentitel>\n<sprache>de</sprache>\n<seitenbeschreibung>Partner der LINEAS Consulting\nGmbH</seitenbeschreibung>\n<schluesselworte>LINEAS Consulting GmbH Hamburg\nPartnerfirmen</schluesselworte>\n<revisit>30 days</revisit>\n<robots>index,follow</robots>\n<menueinformation>\n<aktiv>ja</aktiv>\n<menueposition>3</menueposition>\n<menuetext>Partner</menuetext>\n</menueinformation>\n<lastedited>\n<autor>LCO</autor>\n<firma>LINEAS Consulting</firma>\n<datum>15.10.2003</datum>\n</lastedited>\n</dokumenteninformation>\n<inhalt>\n\n<absatzueberschrift>Die Partnerfirmen der LINEAS Consulting\nGmbH</absatzueberschrift>\n\n<absatz><link ziel="http://www.ca.com/" zielfenster="_blank">\n<bild name="logo_ca.gif" rahmen="no"/></link> <link\nziel="http://www.ey.com/" zielfenster="_blank"><bild\nname="logo_euy.gif" rahmen="no"/></link>\n</absatz>\n\n<absatz><link ziel="http://www.cisco.de/" zielfenster="_blank">\n<bild name="logo_cisco.gif" rahmen="ja"/></link></absatz>\n\n<absatz><link ziel="http://www.atelion.de/"\nzielfenster="_blank"><bild\nname="logo_atelion.gif" rahmen="no"/></link>\n</absatz>\n\n<absatz><link ziel="http://www.line-information.de/"\nzielfenster="_blank">\n<bild name="logo_line_information.gif" rahmen="no"/></link>\n</absatz>\n\n<absatz><bild name="logo_aw.gif" rahmen="no"/></absatz>\n\n<absatz><link ziel="http://www.incognis.de/"\nzielfenster="_blank"><bild\nname="logo_incognis.gif" rahmen="no"/></link></absatz>\n\n<absatz><link ziel="http://www.addcraft.com/"\nzielfenster="_blank"><bild\nname="logo_addcraft.gif" rahmen="no"/></link></absatz>\n\n<absatz><link ziel="http://www.comendo.com/"\nzielfenster="_blank"><bild\nname="logo_comendo.gif" rahmen="no"/></link></absatz>\n\n</inhalt>\n</seite>
1405    
1406    /^a/IF
1407    
1408    /line\nbreak/
1409        this is a line\nbreak
1410        line one\nthis is a line\nbreak in the second line
1411    
1412    /line\nbreak/f
1413        this is a line\nbreak
1414        ** Failers
1415        line one\nthis is a line\nbreak in the second line
1416    
1417    /line\nbreak/mf
1418        this is a line\nbreak
1419        ** Failers
1420        line one\nthis is a line\nbreak in the second line
1421    
1422    /ab.cd/P
1423        ab-cd
1424        ab=cd
1425        ** Failers
1426        ab\ncd
1427    
1428    /ab.cd/Ps
1429        ab-cd
1430        ab=cd
1431        ab\ncd
1432    
1433    /(?i)(?-i)AbCd/
1434        AbCd
1435        ** Failers
1436        abcd
1437    
1438    /a{11111111111111111111}/
1439    
1440    /(){64294967295}/
1441    
1442    /(){2,4294967295}/
1443    
1444    "(?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"
1445        abcdefghijklAkB
1446    
1447    "(?P<n0>a)(?P<n1>b)(?P<n2>c)(?P<n3>d)(?P<n4>e)(?P<n5>f)(?P<n6>g)(?P<n7>h)(?P<n8>i)(?P<n9>j)(?P<n10>k)(?P<n11>l)A\11B"
1448        abcdefghijklAkB
1449    
1450    "(a)(b)(c)(d)(e)(f)(g)(h)(i)(j)(k)(l)A\11B"
1451        abcdefghijklAkB
1452    
1453    "(?P<name0>a)(?P<name1>a)(?P<name2>a)(?P<name3>a)(?P<name4>a)(?P<name5>a)(?P<name6>a)(?P<name7>a)(?P<name8>a)(?P<name9>a)(?P<name10>a)(?P<name11>a)(?P<name12>a)(?P<name13>a)(?P<name14>a)(?P<name15>a)(?P<name16>a)(?P<name17>a)(?P<name18>a)(?P<name19>a)(?P<name20>a)(?P<name21>a)(?P<name22>a)(?P<name23>a)(?P<name24>a)(?P<name25>a)(?P<name26>a)(?P<name27>a)(?P<name28>a)(?P<name29>a)(?P<name30>a)(?P<name31>a)(?P<name32>a)(?P<name33>a)(?P<name34>a)(?P<name35>a)(?P<name36>a)(?P<name37>a)(?P<name38>a)(?P<name39>a)(?P<name40>a)(?P<name41>a)(?P<name42>a)(?P<name43>a)(?P<name44>a)(?P<name45>a)(?P<name46>a)(?P<name47>a)(?P<name48>a)(?P<name49>a)(?P<name50>a)(?P<name51>a)(?P<name52>a)(?P<name53>a)(?P<name54>a)(?P<name55>a)(?P<name56>a)(?P<name57>a)(?P<name58>a)(?P<name59>a)(?P<name60>a)(?P<name61>a)(?P<name62>a)(?P<name63>a)(?P<name64>a)(?P<name65>a)(?P<name66>a)(?P<name67>a)(?P<name68>a)(?P<name69>a)(?P<name70>a)(?P<name71>a)(?P<name72>a)(?P<name73>a)(?P<name74>a)(?P<name75>a)(?P<name76>a)(?P<name77>a)(?P<name78>a)(?P<name79>a)(?P<name80>a)(?P<name81>a)(?P<name82>a)(?P<name83>a)(?P<name84>a)(?P<name85>a)(?P<name86>a)(?P<name87>a)(?P<name88>a)(?P<name89>a)(?P<name90>a)(?P<name91>a)(?P<name92>a)(?P<name93>a)(?P<name94>a)(?P<name95>a)(?P<name96>a)(?P<name97>a)(?P<name98>a)(?P<name99>a)(?P<name100>a)"
1454        aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
1455    
1456    "(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)"
1457        aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
1458    
1459    /[^()]*(?:\((?R)\)[^()]*)*/
1460        (this(and)that
1461        (this(and)that)
1462        (this(and)that)stuff
1463    
1464    /[^()]*(?:\((?>(?R))\)[^()]*)*/
1465        (this(and)that
1466        (this(and)that)
1467    
1468    /[^()]*(?:\((?R)\))*[^()]*/
1469        (this(and)that
1470        (this(and)that)
1471    
1472    /(?:\((?R)\))*[^()]*/
1473        (this(and)that
1474        (this(and)that)
1475        ((this))
1476    
1477    /(?:\((?R)\))|[^()]*/
1478        (this(and)that
1479        (this(and)that)
1480        (this)
1481        ((this))
1482    
1483    /a(b)c/PN
1484        abc
1485    
1486    /a(?P<name>b)c/PN
1487        abc
1488    
1489    /\x{100}/
1490    
1491    /\x{0000ff}/
1492    
1493  / End of testinput2 /  / End of testinput2 /

Legend:
Removed from v.51  
changed lines
  Added in v.87

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12