1 /-- This set of tests is not Perl-compatible. It checks on special features
2 of PCRE's API, error diagnostics, and the compiled code of some patterns.
3 It also checks the non-Perl syntax the PCRE supports (Python, .NET,
4 Oniguruma). Finally, there are some tests where PCRE and Perl differ,
5 either because PCRE can't be compatible, or there is a possible Perl
8 NOTE: This is a non-UTF set of tests. When UTF support is needed, use
9 test 5, and if Unicode Property Support is needed, use test 7. --/
80 this sentence eventually mentions a cat
81 this sentences rambles on and on for a while and then reaches elephant
84 this sentence eventually mentions a cat
85 this sentences rambles on and on for a while and then reaches elephant
88 this sentence eventually mentions a CAT cat
89 this sentences rambles on and on for a while to elephant ElePhant
129 /the quick brown fox/I
131 this is a line with the quick brown fox
133 /the quick brown fox/IA
136 this is a line with the quick brown fox
153 co-processors, and for
176 /(?<!bar|cattle)foo/I
229 /(a*b|(?i:c*(?-i)d))/IS
249 /^((a+)(?U)([ab]+)(?-U)([bc]+)(\w*))/I
254 /(?<!foo)(alpha|omega)/IS
284 /The next three are in testinput2 because they have variable length branches/
286 /(?<=bullock|donkey)-cart/I
295 /(?>.*)(?<=(abcd)|(xyz))/I
299 /(?<=ab(?i)x(?-i)y|(?i)z|b)ZZ/I
318 /This one is here because Perl behaves differently; see also the following/I
324 /Perl does not fail these two for the final subjects. Neither did PCRE until/
325 /release 8.01. The problem is in backtracking into a subpattern that contains/
326 /a recursive reference to itself. PCRE has now made these into atomic patterns./
338 /These are syntax tests from Perl 5.005/I
414 abcdefghijklmnopqrstuvwxyz
415 abcdefghijklmnopqrstuvwxyz\C1
416 abcdefghijklmnopqrstuvwxyz\G1
419 abcdefghijklmnopqrstuvwxyz
420 abcdefghijklmnopqrstuvwxyz\C1\G1
423 abcdefghijklmnopqrstuvwxyz
424 abcdefghijklmnopqrstuvwxyz\C1\G1\L
434 /word ((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+
435 )((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+
436 )?)?)?)?)?)?)?)?)?otherword/I
565 /a(?(1)bag|big)*(.)/I
567 /a(?(1)bag|big)+(.)/I
591 (?: # Non-capturing bracket
592 (?>[^()]+) # Either a sequence of non-brackets (no backtracking)
594 (?R) # Recurse - i.e. nested bracketed string
595 )* # Zero or more contents
604 12(abcde(fsh)xyz(foo(bar))lmno)89
610 /\( ( (?>[^()]+) | (?R) )* \) /Ixg
614 /\( (?: (?>[^()]+) | (?R) ) \) /Ix
622 /\( (?: (?>[^()]+) | (?R) )? \) /Ix
624 12(abcde(fsh)xyz(foo(bar))lmno)89
626 /\( ( (?>[^()]+) | (?R) )* \) /Ix
629 /\( ( ( (?>[^()]+) | (?R) )* ) \) /Ix
632 /\( (123)? ( ( (?>[^()]+) | (?R) )* ) \) /Ix
636 /\( ( (123)? ( (?>[^()]+) | (?R) )* ) \) /Ix
640 /\( (((((((((( ( (?>[^()]+) | (?R) )* )))))))))) \) /Ix
643 /\( ( ( (?>[^()<>]+) | ((?>[^()]+)) | (?R) )* ) \) /Ix
646 /\( ( ( (?>[^()]+) | ((?R)) )* ) \) /Ix
668 /[\n\x0b\x0c\x0d[:blank:]]/IS
712 /((?-i)[[:lower:]])[[:lower:]]/Ii
723 /This one's here because of the large output vector needed/I
725 /(\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|$))(\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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|$))(\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|$))(\w+)\s+(\270)/I
726 \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
728 /This one's here because Perl does this differently and PCRE can't at present/I
734 /These are all cases where Perl does it differently (nested captures)/I
757 /^(?:aa(b(?:b))?)+$/I
760 /^(?:aa(bb(?:b))?)+$/I
763 /^(?:aa(b(?:bb))?)+$/I
766 /^(?:aa(?:b(b))?)+$/I
769 /^(?:aa(?:b(bb))?)+$/I
778 /--------------------------------------------------------------------/I
805 /123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890/DZ
807 /\Q123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890/DZ
845 now is the time for all good men to come to the aid of the party
847 this is not a line with only words and spaces!
863 /([^()]++|\([^()]*\))+/I
866 /\(([^()]++|\([^()]+\))+\)/I
870 ((()aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
888 /^((a+)(?U)([ab]+)(?-U)([bc]+)(\w*))/DZ
923 /[[:space:]abcde]/IDZ
925 /< (?: (?(R) \d++ | [^<>]*+) | (?R)) * >/Ix
935 |8J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jl\]U\)0RP6\{q\%L\^_z5E\'Dw6X\b|IDZ
1020 /(?C1)\dabc(?C2)def/IS
1025 /(?C1)\dabc(?C2)def/ISS
1042 /(abc)(?C)de(?C1)f/I
1060 /((xyz)(?C)p|(?C1)xyzabc)/I
1063 /(X)((xyz)(?C)p|(?C1)xyzabc)/I
1066 /(?=(abc))(?C)abcdef/I
1069 /(?!(abc)(?C1)d)(?C2)abcxyz/I
1072 /(?<=(abc)(?C))xyz/I
1091 /(ab|(bc|(de|(?R))))/I
1093 /x(ab|(bc|(de|(?R))))/I
1102 /(ab|(bc|(de|(?1))))/I
1104 /x(ab|(bc|(de|(?1)x)x)x)/I
1106 /^([^()]|\((?1)*\))*$/I
1113 /^>abc>([^()]|\((?1)*\))*<xyz<$/I
1122 /^(\d+|\((?1)([+*-])(?1)\)|-(?1))$/I
1136 /((< (?: (?(R) \d++ | [^<>]*+) | (?2)) * >))/Ix
1163 /a(?P<name1>b|c)d(?P<longername2>e)/DZ
1167 /(?:a(?P<c>c(?P<d>d)))(?P<a>a)/DZ
1169 /(?P<a>a)...(?P=a)bbb(?P>a)d/DZ
1171 /^\W*(?:(?P<one>(?P<two>.)\W*(?P>one)\W*(?P=two)|)|(?P<three>(?P<four>.)\W*(?P>three)\W*(?P=four)|\W*.\W*))\W*$/Ii
1173 Satan, oscillate my metallic sonatas!
1174 A man, a plan, a canal: Panama!
1175 Able was I ere I saw Elba.
1179 /((?(R)a|b))\1(?1)?/I
1191 /((.*)a|(.*)b)z\1/Is
1193 /((.*)a|(.*)b)z\2/Is
1195 /((.*)a|(.*)b)z\3/Is
1197 /((.*)a|^(.*)b)z\3/Is
1199 /(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)a/Is
1201 /(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)a\31/Is
1203 /(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)a\32/Is
1208 /(?P<one>a)(bc)/INDZ
1211 /(a)(?P<named>bc)/INDZ
1214 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaazzbbbbbb\M
1223 /ab(?P<one>cd)ef(?P<two>gh)/I
1229 /(?P<Tes>)(?P<Test>)/DZ
1231 /(?P<Test>)(?P<Tes>)/DZ
1233 /(?P<Z>zz)(?P<A>aa)/I
1237 /(?P<x>eks)(?P<x>eccs)/I
1239 /(?P<abc>abc(?P<def>def)(?P<abc>xyz))/I
1241 "\[((?P<elem>\d+)(,(?P>elem))*)\]"I
1242 [10,20,30,5,5,4,4,2,43,23,4234]
1246 "\[((?P<elem>\d+)(,(?P>elem))*)?\]"I
1247 [10,20,30,5,5,4,4,2,43,23,4234]
1254 /(a(b(?2)c)){0,2}/DZ
1258 /((w\/|-|with)*(free|immediate)*.*?shipping\s*[!.-]*)/Ii
1259 Baby Bjorn Active Carrier - With free SHIPPING!!
1261 /((w\/|-|with)*(free|immediate)*.*?shipping\s*[!.-]*)/IiS
1262 Baby Bjorn Active Carrier - With free SHIPPING!!
1268 /abc(?C255)de(?C)f/DZ
1306 /([ab]{,4}c|xy)/ICDZS
1307 Note: that { does NOT introduce a quantifier
1309 /([ab]{,4}c|xy)/ICDZSS
1310 Note: that { does NOT introduce a quantifier
1312 /([ab]{1,4}c|xy){4,5}?123/ICDZ
1329 the quick brown abc\P
1331 the quick brown abxyz fox\P
1333 "^(0?[1-9]|[12][0-9]|3[01])/(0?[1-9]|1[012])/(20)?\d\d$"I
1383 /abc/IS>testsavedregex
1389 /abc/ISS>testsavedregex
1395 /abc/IFS>testsavedregex
1401 /abc/IFSS>testsavedregex
1407 /(a|b)/IS>testsavedregex
1413 /(a|b)/ISS>testsavedregex
1419 /(a|b)/ISF>testsavedregex
1425 /(a|b)/ISSF>testsavedregex
1431 ~<(\w+)/?>(.)*</(\1)>~smgI
1432 \J1024<!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>
1437 this is a line\nbreak
1438 line one\nthis is a line\nbreak in the second line
1441 this is a line\nbreak
1443 line one\nthis is a line\nbreak in the second line
1446 this is a line\nbreak
1448 line one\nthis is a line\nbreak in the second line
1455 /a{11111111111111111111}/I
1461 "(?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"I
1464 "(?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"I
1467 "(a)(b)(c)(d)(e)(f)(g)(h)(i)(j)(k)(l)A\11B"I
1470 "(?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)"I
1471 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
1473 "(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)"I
1474 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
1476 /[^()]*(?:\((?R)\)[^()]*)*/I
1479 (this(and)that)stuff
1481 /[^()]*(?:\((?>(?R))\)[^()]*)*/I
1485 /[^()]*(?:\((?R)\))*[^()]*/I
1489 /(?:\((?R)\))*[^()]*/I
1494 /(?:\((?R)\))|[^()]*/I
1502 /^((?P<A>a1)|(?P<A>a2)b)/I
1504 /^((?P<A>a1)|(?P<A>a2)b)/IJ
1510 /(?|(?<a>)(?<b>)(?<a>)|(?<a>)(?<b>)(?<a>))/IJ
1512 /^(?P<A>a)(?P<A>b)/IJ
1515 /^(?P<A>a)(?P<A>b)|cd/IJ
1519 /^(?P<A>a)(?P<A>b)|cd(?P<A>ef)(?P<A>gh)/IJ
1522 /^((?P<A>a1)|(?P<A>a2)b)/IJ
1528 /^(?P<A>a)(?P<A>b)/IJ
1531 /^(?P<A>a)(?P<A>b)|cd/IJ
1535 /^(?P<A>a)(?P<A>b)|cd(?P<A>ef)(?P<A>gh)/IJ
1538 /(?J)^((?P<A>a1)|(?P<A>a2)b)/I
1542 /^(?P<A>a) (?J:(?P<B>b)(?P<B>c)) (?P<A>d)/I
1544 / In this next test, J is not set at the outer level; consequently it isn't
1545 set in the pattern's options; consequently pcre_get_named_substring() produces
1548 /^(?P<A>a) (?J:(?P<B>b)(?P<B>c)) (?P<C>d)/I
1551 /^(?P<A>a)?(?(A)a|b)/I
1557 /(?:(?(ZZ)a|b)(?P<ZZ>X))+/I
1560 /(?:(?(2y)a|b)(X))+/I
1562 /(?:(?(ZA)a|b)(?P<ZZ>X))+/I
1564 /(?:(?(ZZ)a|b)(?(ZZ)a|b)(?P<ZZ>X))+/I
1567 /(?:(?(ZZ)a|\(b\))\\(?P<ZZ>X))+/I
1572 /(?:(?(A)(?P=A)a|b)(?P<A>X|Y))+/I
1576 /()()()()()()()()()(?:(?(A)(?P=A)a|b)(?P<A>X|Y))+/I
1603 xyzabc\r\npqr\<crlf>
1650 +((?:\s|//.*\\n|/[*](?:\\n|.)*?[*]/)*)+I
1651 /* this is a C style comment */\M
1653 /(?P<B>25[0-5]|2[0-4]\d|[01]?\d?\d)(?:\.(?P>B)){3}/I
1655 /()()()()()()()()()()()()()()()()()()()()
1656 ()()()()()()()()()()()()()()()()()()()()
1657 ()()()()()()()()()()()()()()()()()()()()
1658 ()()()()()()()()()()()()()()()()()()()()
1659 ()()()()()()()()()()()()()()()()()()()()
1663 /(a*b|(?i:c*(?-i)d))/IS
1700 /((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((
1701 ((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((
1704 ))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
1705 ))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
1842 /(?P<abc>x)(?P<xyz>y)/I
1845 /(?<abc>x)(?'xyz'y)/I
1848 /(?<abc'x)(?'xyz'y)/I
1850 /(?<abc>x)(?'xyz>y)/I
1852 /(?P'abc'x)(?P<xyz>y)/I
1854 /^(?:(?(ZZ)a|b)(?<ZZ>X))+/
1861 /^(?P>abc)(?<abcd>xxx)/
1863 /^(?P>abc)(?<abc>x|y)/
1869 /^(?P>abc)(?P<abc>x|y)/
1875 /^((?(abc)a|b)(?<abc>x|y))+/
1881 /^(((?P=abc)|X)(?<abc>x|y))+/
1891 /^(?:(?:\1|X)(a|b))+/
1895 /^[\E\Qa\E-\Qz\E]+/BZ
1901 /^(?P>abc)[()](?<abc>)/BZ
1903 /^((?(abc)y)[()](?P<abc>x))+/BZ
1906 /^(?P>abc)\Q()\E(?<abc>)/BZ
1908 /^(?P>abc)[a\Q(]\E(](?<abc>)/BZ
1910 /^(?P>abc) # this is (a comment)
1913 /^\W*(?:(?<one>(?<two>.)\W*(?&one)\W*\k<two>|)|(?<three>(?<four>.)\W*(?&three)\W*\k'four'|\W*.\W*))\W*$/Ii
1915 Satan, oscillate my metallic sonatas!
1916 A man, a plan, a canal: Panama!
1917 Able was I ere I saw Elba.
1924 /(?=(?'abc'\w+))\k<abc>:/I
1927 /(?'abc'a|b)(?<abc>d|e)\k<abc>{2}/J
1933 /(?'abc'a|b)(?<abc>d|e)(?&abc){2}/J
1945 /((abc (?(R) (?(R1)1) (?(R2)2) X | (?1) (?2) (?R) ))) /x
1946 abcabc1Xabc2XabcXabcabc
1948 /(?<A> (?'B' abc (?(R) (?(R&A)1) (?(R&B)2) X | (?1) (?2) (?R) ))) /x
1949 abcabc1Xabc2XabcXabcabc
1951 /(?<A> (?'B' abc (?(R) (?(R&C)1) (?(R&B)2) X | (?1) (?2) (?R) ))) /x
1953 /^(?(DEFINE) abc | xyz ) /x
1955 /(?(DEFINE) abc) xyz/xI
1958 \O0aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
1959 \O0aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa4
1974 abc1 \x0aabc2 \x0babc3xx \x0cabc4 \x0dabc5xx \x0d\x0aabc6 \x85abc7 JUNK
1977 abc1\x0a abc2\x0b abc3\x0c abc4\x0d abc5\x0d\x0a abc6\x85 abc7 abc9
1983 /^a\Rb/<bsr_unicode>
1993 /^a\R*b/<bsr_unicode>
2004 /^a\R+b/<bsr_unicode>
2016 /^a\R{1,3}b/<bsr_unicode>
2028 /^a[\R]b/<bsr_unicode>
2033 /(?&abc)X(?<abc>P)/I
2039 /(?:a(?&abc)b)*(?<abc>x)/
2043 /(?:a(?&abc)b){1,5}(?<abc>x)/
2046 /(?:a(?&abc)b){2,5}(?<abc>x)/
2049 /(?:a(?&abc)b){2,}(?<abc>x)/
2107 /(?m)^$|^\r\n/<any>g+
2114 abc1\x0a abc2\x0b abc3\x0c abc4\x0d abc5\x0d\x0a abc6\x85 abc9
2137 /^(abc)?(?(-1)X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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)
2232 /A(*PRUNE)B(*SKIP)C(*THEN)D(*COMMIT)E(*F)F(*FAIL)G(?!)H(*ACCEPT)I/BZ
2240 /a+b?(*PRUNE)c+(*FAIL)/C
2243 /a+b?(*COMMIT)c+(*FAIL)/C
2246 /a+b?(*SKIP)c+(*FAIL)/C
2249 /a+b?(*THEN)c+(*FAIL)/C
2254 /(?i:A{1,}\6666666666)/
2319 /a\Rb/I<bsr_anycrlf>
2327 /a\Rb/I<bsr_unicode>
2334 a\x85b\<bsr_anycrlf>
2335 a\x0bb\<bsr_anycrlf>
2337 /a\R?b/I<bsr_anycrlf>
2345 /a\R?b/I<bsr_unicode>
2352 a\x85b\<bsr_anycrlf>
2353 a\x0bb\<bsr_anycrlf>
2355 /a\R{2,4}b/I<bsr_anycrlf>
2363 /a\R{2,4}b/I<bsr_unicode>
2371 a\x85\85b\<bsr_anycrlf>
2372 a\x0b\0bb\<bsr_anycrlf>
2374 /(*BSR_ANYCRLF)a\Rb/I
2378 /(*BSR_UNICODE)a\Rb/I
2381 /(*BSR_ANYCRLF)(*CRLF)a\Rb/I
2385 /(*CRLF)(*BSR_UNICODE)a\Rb/I
2388 /(*CRLF)(*BSR_ANYCRLF)(*CR)ab/I
2394 /(?<a>)(?&aaaaaaaaaaaaaaaaaaaaaaa)/
2452 /^(?+1)(?<a>x|y){0}z/
2486 /(?2)[]a()b](abc)(xyz)/
2489 /(?&N)[]a(?<N>)](?<M>abc)/
2492 /(?&N)[]a(?<N>)](abc)/
2530 /(abc|pqr|123){0}[xyz]/SI
2550 /(*NO_START_OPT)xyz/C
2553 /(*NO_AUTO_POSSESS)a+b/BZ
2558 /^"((?(?=[a])[^"])|b)*"$/C
2561 /^"((?(?=[a])[^"])|b)*"$/
2564 /^X(?5)(a)(?|(b)|(q))(c)(d)Y/
2567 /^X(?&N)(a)(?|(b)|(q))(c)(d)(?<N>Y)/
2748 /(?&word)(?&element)(?(DEFINE)(?<element><[^m][^>]>[^<])(?<word>\w*+))/BZ
2750 /(?&word)(?&element)(?(DEFINE)(?<element><[^\d][^>]>[^<])(?<word>\w*+))/BZ
2752 /(ab)(x(y)z(cd(*ACCEPT)))pq/BZ
2762 /^(?:(?=abc)|abc\K)/+
2786 /^(?<name>a|b\g<name>c)/
2792 /^(?<name>a|b\g'name'c)/
2822 /(?-i:\g<name>)(?i:(?<name>a))/
2826 /(?i:\g<name>)(?-i:(?<name>a))/
2831 /(?-i:\g<+1>)(?i:(a))/
2835 /(?=(?<regex>(?#simplesyntax)\$(?<name>[a-zA-Z_\x{7f}-\x{ff}][a-zA-Z0-9_\x{7f}-\x{ff}]*)(?:\[(?<index>[a-zA-Z0-9_\x{7f}-\x{ff}]+|\$\g<name>)\]|->\g<name>(\(.*?\))?)?|(?#simple syntax withbraces)\$\{(?:\g<name>(?<indices>\[(?:\g<index>|'(?:\\.|[^'\\])*'|"(?:\g<regex>|\\.|[^"\\])*")\])?|\g<complex>|\$\{\g<complex>\})\}|(?#complexsyntax)\{(?<complex>\$(?<segment>\g<name>(\g<indices>*|\(.*?\))?)(?:->\g<segment>)*|\$\g<complex>|\$\{\g<complex>\})\}))\{/
2841 /^X(?7)(a)(?|(b)|(q)(r)(s))(c)(d)(Y)/
2858 /(?<=b(?1))xyz(b+)pqrstuvew/
2870 /(a|bbbb\1)(a|bbbb\1)/SI
2874 /^From +([^ ]+) +[a-zA-Z][a-zA-Z][a-zA-Z] +[a-zA-Z][a-zA-Z][a-zA-Z] +[0-9]?[0-9] +[0-9][0-9]:[0-9][0-9]/SI
2876 /<tr([\w\W\s\d][^<>]{0,})><TD([\w\W\s\d][^<>]{0,})>([\d]{0,}\.)(.*)((<BR>([\w\W\s\d][^<>]{0,})|[\s]{0,}))<\/a><\/TD><TD([\w\W\s\d][^<>]{0,})>([\w\W\s\d][^<>]{0,})<\/TD><TD([\w\W\s\d][^<>]{0,})>([\w\W\s\d][^<>]{0,})<\/TD><\/TR>/isIS
2880 /(?(?=[^a-z]+[a-z]) \d{2}-[a-z]{3}-\d{2} | \d{2}-\d{2}-\d{2} ) /xSI
2882 /(?:(?:(?:(?:(?:(?:(?:(?:(?:(a|b|c))))))))))/iSI
2884 /(?:c|d)(?:)(?:aaaaaaaa(?:)(?:bbbbbbbb)(?:bbbbbbbb(?:))(?:bbbbbbbb(?:)(?:bbbbbbbb)))/SI
2886 /<a[\s]+href[\s]*=[\s]* # find <a href=
2887 ([\"\'])? # find single or double quote
2888 (?(1) (.*?)\1 | ([^\s]+)) # if quote found, match up to next matching
2889 # quote, otherwise match up to next space
2892 /^(?!:) # colon disallowed at start
2894 (?: [0-9a-f]{1,4} | # 1-4 hex digits or
2895 (?(1)0 | () ) ) # if null previously matched, fail; else null
2896 : # followed by colon
2897 ){1,7} # end item; 1-7 of them required
2898 [0-9a-f]{1,4} $ # final hex number at end of string
2899 (?(1)|.) # check that there was an empty component
2902 /(?|(?<a>A)|(?<a>B))/I
2906 /(?|(?<a>A)|(?<b>B))/
2908 /(?:a(?<quote> (?<apostrophe>')|(?<realquote>")) |
2909 b(?<quote> (?<apostrophe>')|(?<realquote>")) )
2910 (?('quote')[a-z]+|[0-9]+)/JIx
2917 /^(?|(a)(b)(c)(?<D>d)|(?<D>e)) (?('D')X|Y)/JDZx
2924 /(?<A>a) (b)(c) (?<A>d (?(R&A)$ | (?4)) )/JDZx
2951 /-- This is not in the Perl-compatible test because Perl seems currently to be
2952 broken and not behaving as specified in that it *does* bumpalong after
2953 hitting (*COMMIT). --/
2955 /(?1)(A(*COMMIT)|B)D/
2973 /i(?(DEFINE)(?<s>a))/SI
2990 /^(ab(c\1)d|x){2}$/BZ
2993 /^(?&t)*+(?(DEFINE)(?<t>.))$/BZ
2995 /^(?&t)*(?(DEFINE)(?<t>.))$/BZ
2997 / -- This one is here because Perl gives the match as "b" rather than "ab". I
2998 believe this to be a Perl bug. --/
3003 /(?P<L1>(?P<L2>0|)|(?P>L2)(?P>L1))/
3011 /--- This should, and does, fail. In Perl, it does not, which I think is a
3012 bug because replacing the B in the pattern by (B|D) does make it fail. ---/
3017 /--- These should be different, but in Perl they are not, which I think
3018 is a bug in Perl. ---/
3020 /A(*THEN)B|A(*THEN)C/K
3023 /A(*PRUNE)B|A(*PRUNE)C/K
3026 /--- Mark names can be duplicated. Perl doesn't give a mark for this one,
3027 though PCRE does. ---/
3029 /^A(*:A)B|^X(*:A)Y/K
3033 /--- COMMIT at the start of a pattern should be the same as an anchor. Perl
3034 optimizations defeat this. So does the PCRE optimization unless we disable it
3042 /^(ab (c+(*THEN)cd) | xyz)/x
3045 /^(ab (c+(*PRUNE)cd) | xyz)/x
3048 /^(ab (c+(*FAIL)cd) | xyz)/x
3051 /--- Perl gets some of these wrong ---/
3157 /(?P<abn>(?P=abn)xxx)/BZ
3161 /(?P<abn>(?P=abn)(?<badstufxxx)/BZ
3163 /(?P<abn>(?P=axn)xxx)/BZ
3165 /(?P<abn>(?P=axn)xxx)(?<axn>yy)/BZ
3167 /-- These tests are here because Perl gets the first one wrong. --/
3179 /((?>\r\n|\n|\x0b|\f|\r|\x85)*)(.)/s
3256 /-- Perl doesn't get these right IMO (the 3rd is PCRE-specific) --/
3258 /(?1)(?:(b(*ACCEPT))){0}/
3261 /(?1)(?:(b(*ACCEPT))){0}c/
3266 /(?1)(?:((*ACCEPT))){0}c/
3270 /^.*?(?(?=a)a|b(*THEN)c)/
3276 /^.*?(?(?=a)a(*THEN)b|c)/
3279 /^.*?(?(?=a)a(*THEN)b)c/
3285 /^.*? (?1) c (?(DEFINE)(a(*THEN)b))/x
3288 /^.*?(a(*THEN)b|z)c/
3291 /^.*?(z|a(*THEN)b)c/
3296 /-- These studied versions are here because they are not Perl-compatible; the
3297 studying means the mark is not seen. --/
3299 /(*MARK:A)(*SKIP:B)(C|X)/KS
3303 /(*:A)A+(*SKIP:A)(B|Z)/KS
3312 /(?1)c(?(DEFINE)((*ACCEPT)b))/
3333 /(?(DEFINE)(a(?2)|b)(b(?1)|a))(?:(?1)|(?2))/SI
3335 /(a(?2)|b)(b(?1)|a)(?:(?1)|(?2))/SI
3337 /(a(?2)|b)(b(?1)|a)(?1)(?2)/SI
3349 /(?:(foo)|(bar)|(baz))X/SS=
3374 /^(?=(a)){0}b(?1)/BZ
3376 /(?(DEFINE)(a))?b(?1)/BZ
3378 /^(?=(?1))?[az]([abc])d/BZ
3389 /((?(R2)a+|(?1)b))/SS
3392 /(?(R)a*(?1)|((?R))b)/SS
3397 /^(a(*:A)(d|e(*:B))z|aeq)/C
3405 /\btype\b\W*?\btext\b\W*?\bjavascript\b/IS
3407 /\btype\b\W*?\btext\b\W*?\bjavascript\b|\burl\b\W*?\bshell:|<input\b.*?\btype\b\W*?\bimage\b|\bonkeyup\b\W*?\=/IS
3409 /a(*SKIP)c|b(*ACCEPT)|/+S!I
3412 /a(*SKIP)c|b(*ACCEPT)cd(*ACCEPT)|x/SI
3427 \Mabbbbbbbbbbbbbbbbbbbbba
3429 /a(?:.(*THEN))*?a/ims
3430 \Mabbbbbbbbbbbbbbbbbbbbba
3432 /a(?:.(*THEN:ABC))*?a/ims
3433 \Mabbbbbbbbbbbbbbbbbbbbba
3435 /^(?>a+)(?>(z+))\w/BZ
3446 /(.)((?(1)c|a)|a(?2))/
3449 /(?P<abn>(?P=abn)xxx)/BZ
3453 /^(?>a+)(?>b+)(?>c+)(?>d+)(?>e+)/
3456 /^(?>(a+))(?>(b+))(?>(c+))(?>(d+))(?>(e+))/
3459 /^(?>(a+))(?>b+)(?>(c+))(?>d+)(?>(e+))/
3502 /(a)(?2){0,1999}?(b)/
3504 /(a)(?(DEFINE)(b))(?2){0,1999}?(?2)/
3506 /--- This test, with something more complicated than individual letters, causes
3507 different behaviour in Perl. Perhaps it disables some optimization; no tag is
3508 passed back for the failures, whereas in PCRE there is a tag. ---/
3510 /(A|P)(*:A)(B|P) | (X|P)(X|P)(*:B)(Y|P)/xK
3519 /-- Perl doesn't give marks for these, though it does if the alternatives are
3520 replaced by single letters. --/
3522 /(b|q)(*:m)f|a(*:n)w/K
3527 /(q|b)(*:m)f|a(*:n)w/K
3532 /-- After a partial match, the behaviour is as for a failure. --/
3537 /-- These are here because Perl doesn't return a mark, except for the first --/
3542 /(?=(*:x))((*:y)q|)/K+
3545 /(?=(*:x))(?:(*:y)q|)/K+
3548 /(?=(*:x))(?>(*:y)q|)/K+
3551 /(?=a(*:x))(?!a(*:y)c)/K+
3554 /(?=a(*:x))(?=a(*:y)c|)/K+
3689 "AB(C(D))(E(F))?(?(?=\2)(?=\4))"
3692 /-- These are all run as real matches in test 1; here we are just checking the
3693 settings of the anchored and startline bits. --/
3713 /(?>.*?)(?<=(abcd)|(wxyz))/I
3715 /(?>.*)(?<=(abcd)|(wxyz))/I
3727 /-- Check PCRE_STUDY_EXTRA_NEEDED --/
3733 /(?:(a)+(?C1)bb|aa(?C2)b)/
3736 /(?:(a)++(?C1)bb|aa(?C2)b)/
3739 /(?:(?>(a))(?C1)bb|aa(?C2)b)/
3742 /(?:(?1)(?C1)x|ab(?C2))((a)){0}/
3745 /(?1)(?C1)((a)(?C2)){0}/
3748 /(?:(a)+(?C1)bb|aa(?C2)b)++/
3760 /(?<=123)(*MARK:xx)abc/K
3771 /(?C1)^(?C2)(?(?C99)(?=(?C3)a(?C4))(?C5)a(?C6)a(?C7)|(?C8)b(?C9)b(?C10))(?C11)/
3774 /-- Perl seems to have a bug with this one --/
3776 /aaaaa(*COMMIT)(*PRUNE)b|a+c/
3779 /-- Here are some that Perl treats differently because of the way it handles
3780 backtracking verbs. --/
3782 /(?!a(*COMMIT)b)ac|ad/
3786 /^(?!a(*THEN)b|ac)../
3793 /\A.*?(?:a|b(*THEN)c)/
3796 /\A.*?(?:a|b(*THEN)c)++/
3799 /\A.*?(?:a|b(*THEN)c|d)/
3802 /(?:(a(*MARK:X)a+(*SKIP:X)b)){0}(?:(?1)|aac)/
3805 /\A.*?(a|b(*THEN)c)/
3808 /^(A(*THEN)B|A(*THEN)D)/
3811 /(?!b(*THEN)a)bn|bnn/
3814 /(?(?=b(*SKIP)a)bn|bnn)/
3817 /(?=b(*THEN)a|)bn|bnn/
3820 /-------------------------/
3822 /(*LIMIT_MATCH=12bc)abc/
3824 /(*LIMIT_MATCH=4294967290)abc/
3826 /(*LIMIT_RECURSION=4294967280)abc/I
3830 aaaaaaaaaaaaaz\q3000
3835 /(*LIMIT_MATCH=3000)(a+)*zz/I
3837 aaaaaaaaaaaaaz\q60000
3839 /(*LIMIT_MATCH=60000)(*LIMIT_MATCH=3000)(a+)*zz/I
3842 /(*LIMIT_MATCH=60000)(a+)*zz/I
3844 aaaaaaaaaaaaaz\q3000
3846 /(*LIMIT_RECURSION=10)(a+)*zz/IS-
3848 aaaaaaaaaaaaaz\Q1000
3850 /(*LIMIT_RECURSION=10)(*LIMIT_RECURSION=1000)(a+)*zz/IS-
3853 /(*LIMIT_RECURSION=1000)(a+)*zz/IS-
3857 /-- This test causes a segfault with Perl 5.18.0 --/
3862 /(?|(?<n>f)|(?<n>b))/JI
3864 /(?<a>abc)(?<a>z)\k<a>()/JDZS
3870 /-- A complete set of tests for auto-possessification of character types --/
3872 /\D+\D \D+\d \D+\S \D+\s \D+\W \D+\w \D+. \D+\C \D+\R \D+\H \D+\h \D+\V \D+\v \D+\Z \D+\z \D+$/BZx
3874 /\d+\D \d+\d \d+\S \d+\s \d+\W \d+\w \d+. \d+\C \d+\R \d+\H \d+\h \d+\V \d+\v \d+\Z \d+\z \d+$/BZx
3876 /\S+\D \S+\d \S+\S \S+\s \S+\W \S+\w \S+. \S+\C \S+\R \S+\H \S+\h \S+\V \S+\v \S+\Z \S+\z \S+$/BZx
3878 /\s+\D \s+\d \s+\S \s+\s \s+\W \s+\w \s+. \s+\C \s+\R \s+\H \s+\h \s+\V \s+\v \s+\Z \s+\z \s+$/BZx
3880 /\W+\D \W+\d \W+\S \W+\s \W+\W \W+\w \W+. \W+\C \W+\R \W+\H \W+\h \W+\V \W+\v \W+\Z \W+\z \W+$/BZx
3882 /\w+\D \w+\d \w+\S \w+\s \w+\W \w+\w \w+. \w+\C \w+\R \w+\H \w+\h \w+\V \w+\v \w+\Z \w+\z \w+$/BZx
3884 /\C+\D \C+\d \C+\S \C+\s \C+\W \C+\w \C+. \C+\C \C+\R \C+\H \C+\h \C+\V \C+\v \C+\Z \C+\z \C+$/BZx
3886 /\R+\D \R+\d \R+\S \R+\s \R+\W \R+\w \R+. \R+\C \R+\R \R+\H \R+\h \R+\V \R+\v \R+\Z \R+\z \R+$/BZx
3888 /\H+\D \H+\d \H+\S \H+\s \H+\W \H+\w \H+. \H+\C \H+\R \H+\H \H+\h \H+\V \H+\v \H+\Z \H+\z \H+$/BZx
3890 /\h+\D \h+\d \h+\S \h+\s \h+\W \h+\w \h+. \h+\C \h+\R \h+\H \h+\h \h+\V \h+\v \h+\Z \h+\z \h+$/BZx
3892 /\V+\D \V+\d \V+\S \V+\s \V+\W \V+\w \V+. \V+\C \V+\R \V+\H \V+\h \V+\V \V+\v \V+\Z \V+\z \V+$/BZx
3894 /\v+\D \v+\d \v+\S \v+\s \v+\W \v+\w \v+. \v+\C \v+\R \v+\H \v+\h \v+\V \v+\v \v+\Z \v+\z \v+$/BZx
3896 / a+\D a+\d a+\S a+\s a+\W a+\w a+. a+\C a+\R a+\H a+\h a+\V a+\v a+\Z a+\z a+$/BZx
3898 /\n+\D \n+\d \n+\S \n+\s \n+\W \n+\w \n+. \n+\C \n+\R \n+\H \n+\h \n+\V \n+\v \n+\Z \n+\z \n+$/BZx
3900 / .+\D .+\d .+\S .+\s .+\W .+\w .+. .+\C .+\R .+\H .+\h .+\V .+\v .+\Z .+\z .+$/BZx
3902 / .+\D .+\d .+\S .+\s .+\W .+\w .+. .+\C .+\R .+\H .+\h .+\V .+\v .+\Z .+\z .+$/BZxs
3904 /\D+$ \d+$ \S+$ \s+$ \W+$ \w+$ \C+$ \R+$ \H+$ \h+$ \V+$ \v+$ a+$ \n+$ .+$ .+$/BZxm
3908 /a+(bb|cc)a+(?:bb|cc)a+(?>bb|cc)a+(?:bb|cc)+a+(aa)a+(?:bb|aa)/BZ
3910 /a+(bb|cc)?#a+(?:bb|cc)??#a+(?:bb|cc)?+#a+(?:bb|cc)*#a+(bb|cc)?a#a+(?:aa)?/BZ
3912 /a+(?:bb)?a#a+(?:|||)#a+(?:|b)a#a+(?:|||)?a/BZ
3944 /\d+\s{0,5}=\s*\S?=\w{0,4}\W*/BZ
3946 /[a-d]{5,12}[e-z0-9]*#[^a-z]+[b-y]*a[2-7]?[^0-9a-z]+/BZ
3948 /[a-z]*\s#[ \t]?\S#[a-c]*\S#[C-G]+?\d#[4-8]*\D#[4-9,]*\D#[!$]{0,5}\w#[M-Xf-l]+\W#[a-c,]?\W/BZ
3950 /a+(aa|bb)*c#a*(bb|cc)*a#a?(bb|cc)*d#[a-f]*(g|hh)*f/BZ
3952 /[a-f]*(g|hh|i)*i#[a-x]{4,}(y{0,6})*y#[a-k]+(ll|mm)+n/BZ
3954 /[a-f]*(?>gg|hh)+#[a-f]*(?>gg|hh)?#[a-f]*(?>gg|hh)*a#[a-f]*(?>gg|hh)*h/BZ
3966 /-- End of special auto-possessive tests --/
4004 /(?&1abc)xx(?<1abc>y)/
4022 /(?&1abc)xx(?<1abc>y)/
4024 /(?P>1abc)xx(?<1abc>y)/
4038 /-- Test the ugly "start or end of word" compatibility syntax --/
4040 /[[:<:]]red[[:>:]]/BZ
4041 little red riding hood
4049 /[a[:<:]] should give error/
4057 / -- Test stack check external calls --/
4065 /-- End of testinput2 --/