/[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 49 by nigel, Sat Feb 24 21:39:33 2007 UTC revision 77 by nigel, Sat Feb 24 21:40:45 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  /^[[:ascii:]]/D  /^[[:ascii:]]/D
676    
677    /^[[:^ascii:]]/D
678    
679    /^[[:blank:]]/D
680    
681  /^[[:cntrl:]]/D  /^[[:cntrl:]]/D
682    
683  /^[[:digit:]]/D  /^[[:digit:]]/D
# Line 682  Line 702 
702    
703  /^[12[:^digit:]]/D  /^[12[:^digit:]]/D
704    
705    /^[[:^blank:]]/D
706    
707  /[01[:alpha:]%]/D  /[01[:alpha:]%]/D
708    
709  /[[.ch.]]/  /[[.ch.]]/
# Line 707  Line 729 
729    
730  /[\200-\410]/  /[\200-\410]/
731    
732    /^(?(0)f|b)oo/
733    
734    /This one's here because of the large output vector needed/
735    
736    /(\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+(?:\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|$))(\w+)\s+(\270)/
737        \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
738    
739    /This one's here because Perl does this differently and PCRE can't at present/
740    
741    /(main(O)?)+/
742        mainmain
743        mainOmain
744    
745    /These are all cases where Perl does it differently (nested captures)/
746    
747    /^(a(b)?)+$/
748        aba
749    
750    /^(aa(bb)?)+$/
751        aabbaa
752    
753    /^(aa|aa(bb))+$/
754        aabbaa
755    
756    /^(aa(bb)??)+$/
757        aabbaa
758    
759    /^(?:aa(bb)?)+$/
760        aabbaa
761    
762    /^(aa(b(b))?)+$/
763        aabbaa
764    
765    /^(?:aa(b(b))?)+$/
766        aabbaa
767    
768    /^(?:aa(b(?:b))?)+$/
769        aabbaa
770    
771    /^(?:aa(bb(?:b))?)+$/
772        aabbbaa
773    
774    /^(?:aa(b(?:bb))?)+$/
775        aabbbaa
776    
777    /^(?:aa(?:b(b))?)+$/
778        aabbaa
779    
780    /^(?:aa(?:b(bb))?)+$/
781        aabbbaa
782    
783    /^(aa(b(bb))?)+$/
784        aabbbaa
785    
786    /^(aa(bb(bb))?)+$/
787        aabbbbaa
788    
789    /--------------------------------------------------------------------/
790    
791    /#/xMD
792    
793    /a#/xMD
794    
795    /[\s]/D
796    
797    /[\S]/D
798    
799    /a(?i)b/D
800        ab
801        aB
802        *** Failers
803        AB
804    
805    /(a(?i)b)/D
806        ab
807        aB
808        *** Failers
809        AB
810    
811    /   (?i)abc/xD
812    
813    /#this is a comment
814      (?i)abc/xD
815    
816    /123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890/D
817    
818    /\Q123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890/D
819    
820    /\Q\E/D
821        \
822    
823    /\Q\Ex/D
824    
825    / \Q\E/D
826    
827    /a\Q\E/D
828      abc
829      bca
830      bac
831    
832    /a\Q\Eb/D
833      abc
834    
835    /\Q\Eabc/D
836    
837    /x*+\w/D
838        *** Failers
839        xxxxx
840    
841    /x?+/D
842    
843    /x++/D
844    
845    /x{1,3}+/D
846    
847    /(x)*+/D
848    
849    /^(\w++|\s++)*$/
850        now is the time for all good men to come to the aid of the party
851        *** Failers
852        this is not a line with only words and spaces!
853    
854    /(\d++)(\w)/
855        12345a
856        *** Failers
857        12345+
858    
859    /a++b/
860        aaab
861    
862    /(a++b)/
863        aaab
864    
865    /(a++)b/
866        aaab
867    
868    /([^()]++|\([^()]*\))+/
869        ((abc(ade)ufh()()x
870    
871    /\(([^()]++|\([^()]+\))+\)/
872        (abc)
873        (abc(def)xyz)
874        *** Failers
875        ((()aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
876    
877    /(abc){1,3}+/D
878    
879    /a+?+/
880    
881    /a{2,3}?+b/
882    
883    /(?U)a+?+/
884    
885    /a{2,3}?+b/U
886    
887    /x(?U)a++b/D
888        xaaaab
889    
890    /(?U)xa++b/D
891        xaaaab
892    
893    /^((a+)(?U)([ab]+)(?-U)([bc]+)(\w*))/D
894    
895    /^x(?U)a+b/D
896    
897    /^x(?U)(a+)b/D
898    
899    /[.x.]/
900    
901    /[=x=]/
902    
903    /[:x:]/
904    
905    /\l/
906    
907    /\L/
908    
909    /\N{name}/
910    
911    /\u/
912    
913    /\U/
914    
915    /[/
916    
917    /[a-/
918    
919    /[[:space:]/
920    
921    /[\s]/DM
922    
923    /[[:space:]]/DM
924    
925    /[[:space:]abcde]/DM
926    
927    /< (?: (?(R) \d++  | [^<>]*+) | (?R)) * >/x
928        <>
929        <abcd>
930        <abc <123> hij>
931        <abc <def> hij>
932        <abc<>def>
933        <abc<>
934        *** Failers
935        <abc
936    
937    |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
938    
939    |\$\<\.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
940    
941    /(.*)\d+\1/I
942    
943    /(.*)\d+/I
944    
945    /(.*)\d+\1/Is
946    
947    /(.*)\d+/Is
948    
949    /(.*(xyz))\d+\2/I
950    
951    /((.*))\d+\1/I
952        abc123bc
953    
954    /a[b]/I
955    
956    /(?=a).*/I
957    
958    /(?=abc).xyz/iI
959    
960    /(?=abc)(?i).xyz/I
961    
962    /(?=a)(?=b)/I
963    
964    /(?=.)a/I
965    
966    /((?=abcda)a)/I
967    
968    /((?=abcda)ab)/I
969    
970    /()a/I
971    
972    /(?(1)ab|ac)/I
973    
974    /(?(1)abz|acz)/I
975    
976    /(?(1)abz)/I
977    
978    /(?(1)abz)123/I
979    
980    /(a)+/I
981    
982    /(a){2,3}/I
983    
984    /(a)*/I
985    
986    /[a]/I
987    
988    /[ab]/I
989    
990    /[ab]/IS
991    
992    /[^a]/I
993    
994    /\d456/I
995    
996    /\d456/IS
997    
998    /a^b/I
999    
1000    /^a/mI
1001      abcde
1002      xy\nabc
1003      *** Failers
1004      xyabc
1005    
1006    /c|abc/I
1007    
1008    /(?i)[ab]/IS
1009    
1010    /[ab](?i)cd/IS
1011    
1012    /abc(?C)def/
1013        abcdef
1014        1234abcdef
1015        *** Failers
1016        abcxyz
1017        abcxyzf
1018    
1019    /abc(?C)de(?C1)f/
1020        123abcdef
1021    
1022    /(?C1)\dabc(?C2)def/
1023        1234abcdef
1024        *** Failers
1025        abcdef
1026    
1027    /(?C255)ab/
1028    
1029    /(?C256)ab/
1030    
1031    /(?Cab)xx/
1032    
1033    /(?C12vr)x/
1034    
1035    /abc(?C)def/
1036        *** Failers
1037        \x83\x0\x61bcdef
1038    
1039    /(abc)(?C)de(?C1)f/
1040        123abcdef
1041        123abcdef\C+
1042        123abcdef\C-
1043        *** Failers
1044        123abcdef\C!1
1045    
1046    /(?C0)(abc(?C1))*/
1047        abcabcabc
1048        abcabc\C!1!3
1049        *** Failers
1050        abcabcabc\C!1!3
1051    
1052    /(\d{3}(?C))*/
1053        123\C+
1054        123456\C+
1055        123456789\C+
1056    
1057    /((xyz)(?C)p|(?C1)xyzabc)/
1058        xyzabc\C+
1059    
1060    /(X)((xyz)(?C)p|(?C1)xyzabc)/
1061        Xxyzabc\C+
1062    
1063    /(?=(abc))(?C)abcdef/
1064        abcdef\C+
1065    
1066    /(?!(abc)(?C1)d)(?C2)abcxyz/
1067        abcxyz\C+
1068    
1069    /(?<=(abc)(?C))xyz/
1070       abcxyz\C+
1071    
1072    /a(b+)(c*)(?C1)/
1073        abbbbbccc\C*1
1074    
1075    /a(b+?)(c*?)(?C1)/
1076        abbbbbccc\C*1
1077    
1078    /(?C)abc/
1079    
1080    /(?C)^abc/
1081    
1082    /(?C)a|b/S
1083    
1084    /(?R)/
1085    
1086    /(a|(?R))/
1087    
1088    /(ab|(bc|(de|(?R))))/
1089    
1090    /x(ab|(bc|(de|(?R))))/
1091        xab
1092        xbc
1093        xde
1094        xxab
1095        xxxab
1096        *** Failers
1097        xyab
1098    
1099    /(ab|(bc|(de|(?1))))/
1100    
1101    /x(ab|(bc|(de|(?1)x)x)x)/
1102    
1103    /^([^()]|\((?1)*\))*$/
1104        abc
1105        a(b)c
1106        a(b(c))d
1107        *** Failers)
1108        a(b(c)d
1109    
1110    /^>abc>([^()]|\((?1)*\))*<xyz<$/
1111       >abc>123<xyz<
1112       >abc>1(2)3<xyz<
1113       >abc>(1(2)3)<xyz<
1114    
1115    /(a(?1)b)/D
1116    
1117    /(a(?1)+b)/D
1118    
1119    /^\W*(?:((.)\W*(?1)\W*\2|)|((.)\W*(?3)\W*\4|\W*.\W*))\W*$/i
1120        1221
1121        Satan, oscillate my metallic sonatas!
1122        A man, a plan, a canal: Panama!
1123        Able was I ere I saw Elba.
1124        *** Failers
1125        The quick brown fox
1126    
1127    /^(\d+|\((?1)([+*-])(?1)\)|-(?1))$/
1128        12
1129        (((2+2)*-3)-7)
1130        -12
1131        *** Failers
1132        ((2+2)*-3)-7)
1133    
1134    /^(x(y|(?1){2})z)/
1135        xyz
1136        xxyzxyzz
1137        *** Failers
1138        xxyzz
1139        xxyzxyzxyzz
1140    
1141    /((< (?: (?(R) \d++  | [^<>]*+) | (?2)) * >))/x
1142        <>
1143        <abcd>
1144        <abc <123> hij>
1145        <abc <def> hij>
1146        <abc<>def>
1147        <abc<>
1148        *** Failers
1149        <abc
1150    
1151    /(?1)/
1152    
1153    /((?2)(abc)/
1154    
1155    /^(abc)def(?1)/
1156        abcdefabc
1157    
1158    /^(a|b|c)=(?1)+/
1159        a=a
1160        a=b
1161        a=bc
1162    
1163    /^(a|b|c)=((?1))+/
1164        a=a
1165        a=b
1166        a=bc
1167    
1168    /a(?P<name1>b|c)d(?P<longername2>e)/D
1169        abde
1170        acde
1171    
1172    /(?:a(?P<c>c(?P<d>d)))(?P<a>a)/D
1173    
1174    /(?P<a>a)...(?P=a)bbb(?P>a)d/D
1175    
1176    /^\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
1177        1221
1178        Satan, oscillate my metallic sonatas!
1179        A man, a plan, a canal: Panama!
1180        Able was I ere I saw Elba.
1181        *** Failers
1182        The quick brown fox
1183    
1184    /((?(R)a|b))\1(?1)?/
1185      bb
1186      bbaa
1187    
1188    /(.*)a/sI
1189    
1190    /(.*)a\1/sI
1191    
1192    /(.*)a(b)\2/sI
1193    
1194    /((.*)a|(.*)b)z/sI
1195    
1196    /((.*)a|(.*)b)z\1/sI
1197    
1198    /((.*)a|(.*)b)z\2/sI
1199    
1200    /((.*)a|(.*)b)z\3/sI
1201    
1202    /((.*)a|^(.*)b)z\3/sI
1203    
1204    /(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)a/sI
1205    
1206    /(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)a\31/sI
1207    
1208    /(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)a\32/sI
1209    
1210    /(a)(bc)/ND
1211      abc
1212    
1213    /(?P<one>a)(bc)/ND
1214      abc
1215    
1216    /(a)(?P<named>bc)/ND
1217    
1218    /(a+)*zz/
1219      aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaazzbbbbbb\M
1220      aaaaaaaaaaaaaz\M
1221    
1222    /(aaa(?C1)bbb|ab)/
1223       aaabbb
1224       aaabbb\C*0
1225       aaabbb\C*1
1226       aaabbb\C*-1
1227    
1228    /ab(?P<one>cd)ef(?P<two>gh)/
1229        abcdefgh
1230        abcdefgh\C1\Gtwo
1231        abcdefgh\Cone\Ctwo
1232        abcdefgh\Cthree
1233    
1234    /(?P<Tes>)(?P<Test>)/D
1235    
1236    /(?P<Test>)(?P<Tes>)/D
1237    
1238    /(?P<Z>zz)(?P<A>aa)/
1239        zzaa\CZ
1240        zzaa\CA
1241    
1242    /(?P<x>eks)(?P<x>eccs)/
1243    
1244    /(?P<abc>abc(?P<def>def)(?P<abc>xyz))/
1245    
1246    "\[((?P<elem>\d+)(,(?P>elem))*)\]"
1247        [10,20,30,5,5,4,4,2,43,23,4234]
1248        *** Failers
1249        []
1250    
1251    "\[((?P<elem>\d+)(,(?P>elem))*)?\]"
1252        [10,20,30,5,5,4,4,2,43,23,4234]
1253        []
1254    
1255    /(a(b(?2)c))?/D
1256    
1257    /(a(b(?2)c))*/D
1258    
1259    /(a(b(?2)c)){0,2}/D
1260    
1261    /[ab]{1}+/D
1262    
1263    /((w\/|-|with)*(free|immediate)*.*?shipping\s*[!.-]*)/i
1264         Baby Bjorn Active Carrier - With free SHIPPING!!
1265    
1266    /((w\/|-|with)*(free|immediate)*.*?shipping\s*[!.-]*)/iS
1267         Baby Bjorn Active Carrier - With free SHIPPING!!
1268    
1269    /a*.*b/SD
1270    
1271    /(a|b)*.?c/SD
1272    
1273    /abc(?C255)de(?C)f/D
1274    
1275    /abcde/CD
1276      abcde
1277      abcdfe
1278    
1279    /a*b/CD
1280      ab
1281      aaaab
1282      aaaacb
1283    
1284    /a+b/CD
1285      ab
1286      aaaab
1287      aaaacb
1288    
1289    /(abc|def)x/CD
1290      abcx
1291      defx
1292      abcdefzx
1293    
1294    /(ab|cd){3,4}/C
1295      ababab
1296      abcdabcd
1297      abcdcdcdcdcd
1298    
1299    /([ab]{,4}c|xy)/CD
1300        Note: that { does NOT introduce a quantifier
1301    
1302    /([ab]{1,4}c|xy){4,5}?123/CD
1303        aacaacaacaacaac123
1304    
1305    /\b.*/I
1306      ab cd\>1
1307    
1308    /\b.*/Is
1309      ab cd\>1
1310    
1311    /(?!.bcd).*/I
1312      Xbcd12345
1313    
1314    /abcde/
1315        ab\P
1316        abc\P
1317        abcd\P
1318        abcde\P
1319        the quick brown abc\P
1320        ** Failers\P
1321        the quick brown abxyz fox\P
1322    
1323    "^(0?[1-9]|[12][0-9]|3[01])/(0?[1-9]|1[012])/(20)?\d\d$"
1324        13/05/04\P
1325        13/5/2004\P
1326        02/05/09\P
1327        1\P
1328        1/2\P
1329        1/2/0\P
1330        1/2/04\P
1331        0\P
1332        02/\P
1333        02/0\P
1334        02/1\P
1335        ** Failers\P
1336        \P
1337        123\P
1338        33/4/04\P
1339        3/13/04\P
1340        0/1/2003\P
1341        0/\P
1342        02/0/\P
1343        02/13\P
1344    
1345    /0{0,2}ABC/I
1346    
1347    /\d{3,}ABC/I
1348    
1349    /\d*ABC/I
1350    
1351    /[abc]+DE/I
1352    
1353    /[abc]?123/
1354        123\P
1355        a\P
1356        b\P
1357        c\P
1358        c12\P
1359        c123\P
1360    
1361    /^(?:\d){3,5}X/
1362        1\P
1363        123\P
1364        123X
1365        1234\P
1366        1234X
1367        12345\P
1368        12345X
1369        *** Failers
1370        1X
1371        123456\P
1372    
1373    /abc/>testsavedregex
1374    <testsavedregex
1375        abc
1376        ** Failers
1377        bca
1378    
1379    /abc/F>testsavedregex
1380    <testsavedregex
1381        abc
1382        ** Failers
1383        bca
1384    
1385    /(a|b)/S>testsavedregex
1386    <testsavedregex
1387        abc
1388        ** Failers
1389        def
1390    
1391    /(a|b)/SF>testsavedregex
1392    <testsavedregex
1393        abc
1394        ** Failers
1395        def
1396    
1397    ~<(\w+)/?>(.)*</(\1)>~smg
1398        <!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>
1399    
1400    /^a/IF
1401    
1402    /line\nbreak/
1403        this is a line\nbreak
1404        line one\nthis is a line\nbreak in the second line
1405    
1406    /line\nbreak/f
1407        this is a line\nbreak
1408        ** Failers
1409        line one\nthis is a line\nbreak in the second line
1410    
1411    /line\nbreak/mf
1412        this is a line\nbreak
1413        ** Failers
1414        line one\nthis is a line\nbreak in the second line
1415    
1416    /ab.cd/P
1417        ab-cd
1418        ab=cd
1419        ** Failers
1420        ab\ncd
1421    
1422    /ab.cd/Ps
1423        ab-cd
1424        ab=cd
1425        ab\ncd
1426    
1427  / End of testinput2 /  / End of testinput2 /

Legend:
Removed from v.49  
changed lines
  Added in v.77

  ViewVC Help
Powered by ViewVC 1.1.5