/[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 102 by ph10, Tue Mar 6 15:50:45 2007 UTC revision 226 by ph10, Tue Aug 21 11:46:08 2007 UTC
# Line 28  Line 28 
28      *** Failers      *** Failers
29      def\nabc      def\nabc
30    
31  /ab\hdef/X  /ab\idef/X
32    
33  /(?X)ab\hdef/X  /(?X)ab\idef/X
34    
35  /x{5,4}/  /x{5,4}/
36    
# Line 236  Line 236 
236    
237  /((?i)blah)\s+\1/I  /((?i)blah)\s+\1/I
238    
239  /((?i)b)/IDS  /((?i)b)/IDZS
240    
241  /(a*b|(?i:c*(?-i)d))/IS  /(a*b|(?i:c*(?-i)d))/IS
242    
# Line 440  Line 440 
440    
441  /word ((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+  /word ((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+
442  )((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+  )((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+
443  )?)?)?)?)?)?)?)?)?otherword/IM  )?)?)?)?)?)?)?)?)?otherword/I
444    
445  /.*X/ID  /.*X/IDZ
446    
447  /.*X/IDs  /.*X/IDZs
448    
449  /(.*X|^B)/ID  /(.*X|^B)/IDZ
450    
451  /(.*X|^B)/IDs  /(.*X|^B)/IDZs
452    
453  /(?s)(.*X|^B)/ID  /(?s)(.*X|^B)/IDZ
454    
455  /(?s:.*X|^B)/ID  /(?s:.*X|^B)/IDZ
456    
457  /\Biss\B/I+  /\Biss\B/I+
458      Mississippi      Mississippi
# Line 666  Line 666 
666      (ab(cd)ef)      (ab(cd)ef)
667      (ab(cd(ef)gh)ij)      (ab(cd(ef)gh)ij)
668    
669  /^[[:alnum:]]/D  /^[[:alnum:]]/DZ
670    
671  /^[[:^alnum:]]/D  /^[[:^alnum:]]/DZ
672    
673  /^[[:alpha:]]/D  /^[[:alpha:]]/DZ
674    
675  /^[[:^alpha:]]/D  /^[[:^alpha:]]/DZ
676    
677  /[_[:alpha:]]/IS  /[_[:alpha:]]/IS
678    
679  /^[[:ascii:]]/D  /^[[:ascii:]]/DZ
680    
681  /^[[:^ascii:]]/D  /^[[:^ascii:]]/DZ
682    
683  /^[[:blank:]]/D  /^[[:blank:]]/DZ
684    
685  /^[[:^blank:]]/D  /^[[:^blank:]]/DZ
686    
687  /[\n\x0b\x0c\x0d[:blank:]]/IS  /[\n\x0b\x0c\x0d[:blank:]]/IS
688    
689  /^[[:cntrl:]]/D  /^[[:cntrl:]]/DZ
690    
691  /^[[:digit:]]/D  /^[[:digit:]]/DZ
692    
693  /^[[:graph:]]/D  /^[[:graph:]]/DZ
694    
695  /^[[:lower:]]/D  /^[[:lower:]]/DZ
696    
697  /^[[:print:]]/D  /^[[:print:]]/DZ
698    
699  /^[[:punct:]]/D  /^[[:punct:]]/DZ
700    
701  /^[[:space:]]/D  /^[[:space:]]/DZ
702    
703  /^[[:upper:]]/D  /^[[:upper:]]/DZ
704    
705  /^[[:xdigit:]]/D  /^[[:xdigit:]]/DZ
706    
707  /^[[:word:]]/D  /^[[:word:]]/DZ
708    
709  /^[[:^cntrl:]]/D  /^[[:^cntrl:]]/DZ
710    
711  /^[12[:^digit:]]/D  /^[12[:^digit:]]/DZ
712    
713  /^[[:^blank:]]/D  /^[[:^blank:]]/DZ
714    
715  /[01[:alpha:]%]/D  /[01[:alpha:]%]/DZ
716    
717  /[[.ch.]]/I  /[[.ch.]]/I
718    
# Line 796  Line 796 
796    
797  /--------------------------------------------------------------------/I  /--------------------------------------------------------------------/I
798    
799  /#/IxMD  /#/IxDZ
800    
801  /a#/IxMD  /a#/IxDZ
802    
803  /[\s]/D  /[\s]/DZ
804    
805  /[\S]/D  /[\S]/DZ
806    
807  /a(?i)b/D  /a(?i)b/DZ
808      ab      ab
809      aB      aB
810      *** Failers      *** Failers
811      AB      AB
812    
813  /(a(?i)b)/D  /(a(?i)b)/DZ
814      ab      ab
815      aB      aB
816      *** Failers      *** Failers
817      AB      AB
818    
819  /   (?i)abc/IxD  /   (?i)abc/IxDZ
820    
821  /#this is a comment  /#this is a comment
822    (?i)abc/IxD    (?i)abc/IxDZ
823    
824  /123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890/D  /123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890/DZ
825    
826  /\Q123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890/D  /\Q123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890/DZ
827    
828  /\Q\E/D  /\Q\E/DZ
829      \      \
830    
831  /\Q\Ex/D  /\Q\Ex/DZ
832    
833  / \Q\E/D  / \Q\E/DZ
834    
835  /a\Q\E/D  /a\Q\E/DZ
836    abc    abc
837    bca    bca
838    bac    bac
839    
840  /a\Q\Eb/D  /a\Q\Eb/DZ
841    abc    abc
842    
843  /\Q\Eabc/D  /\Q\Eabc/DZ
844    
845  /x*+\w/D  /x*+\w/DZ
846      *** Failers      *** Failers
847      xxxxx      xxxxx
848    
849  /x?+/D  /x?+/DZ
850    
851  /x++/D  /x++/DZ
852    
853  /x{1,3}+/D  /x{1,3}+/DZ
854    
855  /(x)*+/D  /(x)*+/DZ
856    
857  /^(\w++|\s++)*$/I  /^(\w++|\s++)*$/I
858      now is the time for all good men to come to the aid of the party      now is the time for all good men to come to the aid of the party
# Line 882  Line 882 
882      *** Failers      *** Failers
883      ((()aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa      ((()aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
884    
885  /(abc){1,3}+/D  /(abc){1,3}+/DZ
886    
887  /a+?+/I  /a+?+/I
888    
# Line 892  Line 892 
892    
893  /a{2,3}?+b/IU  /a{2,3}?+b/IU
894    
895  /x(?U)a++b/D  /x(?U)a++b/DZ
896      xaaaab      xaaaab
897    
898  /(?U)xa++b/D  /(?U)xa++b/DZ
899      xaaaab      xaaaab
900    
901  /^((a+)(?U)([ab]+)(?-U)([bc]+)(\w*))/D  /^((a+)(?U)([ab]+)(?-U)([bc]+)(\w*))/DZ
902    
903  /^x(?U)a+b/D  /^x(?U)a+b/DZ
904    
905  /^x(?U)(a+)b/D  /^x(?U)(a+)b/DZ
906    
907  /[.x.]/I  /[.x.]/I
908    
# Line 926  Line 926 
926    
927  /[[:space:]/I  /[[:space:]/I
928    
929  /[\s]/IDM  /[\s]/IDZ
930    
931  /[[:space:]]/IDM  /[[:space:]]/IDZ
932    
933  /[[:space:]abcde]/IDM  /[[:space:]abcde]/IDZ
934    
935  /< (?: (?(R) \d++  | [^<>]*+) | (?R)) * >/Ix  /< (?: (?(R) \d++  | [^<>]*+) | (?R)) * >/Ix
936      <>      <>
# Line 942  Line 942 
942      *** Failers      *** Failers
943      <abc      <abc
944    
945  |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\}YWF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(1(2)3)<xyz<     >abc>(1(2)3)<xyz<
1122    
1123  /(a(?1)b)/D  /(a(?1)b)/DZ
1124    
1125  /(a(?1)+b)/D  /(a(?1)+b)/DZ
1126    
1127  /^\W*(?:((.)\W*(?1)\W*\2|)|((.)\W*(?3)\W*\4|\W*.\W*))\W*$/Ii  /^\W*(?:((.)\W*(?1)\W*\2|)|((.)\W*(?3)\W*\4|\W*.\W*))\W*$/Ii
1128      1221      1221
# Line 1173  Line 1173 
1173      a=b      a=b
1174      a=bc      a=bc
1175    
1176  /a(?P<name1>b|c)d(?P<longername2>e)/D  /a(?P<name1>b|c)d(?P<longername2>e)/DZ
1177      abde      abde
1178      acde      acde
1179    
1180  /(?:a(?P<c>c(?P<d>d)))(?P<a>a)/D  /(?:a(?P<c>c(?P<d>d)))(?P<a>a)/DZ
1181    
1182  /(?P<a>a)...(?P=a)bbb(?P>a)d/D  /(?P<a>a)...(?P=a)bbb(?P>a)d/DZ
1183    
1184  /^\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  /^\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
1185      1221      1221
# Line 1215  Line 1215 
1215    
1216  /(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)a\32/Is  /(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)|(.*)a\32/Is
1217    
1218  /(a)(bc)/IND  /(a)(bc)/INDZ
1219    abc    abc
1220    
1221  /(?P<one>a)(bc)/IND  /(?P<one>a)(bc)/INDZ
1222    abc    abc
1223    
1224  /(a)(?P<named>bc)/IND  /(a)(?P<named>bc)/INDZ
1225    
1226  /(a+)*zz/I  /(a+)*zz/I
1227    aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaazzbbbbbb\M    aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaazzbbbbbb\M
# Line 1239  Line 1239 
1239      abcdefgh\Cone\Ctwo      abcdefgh\Cone\Ctwo
1240      abcdefgh\Cthree      abcdefgh\Cthree
1241    
1242  /(?P<Tes>)(?P<Test>)/D  /(?P<Tes>)(?P<Test>)/DZ
1243    
1244  /(?P<Test>)(?P<Tes>)/D  /(?P<Test>)(?P<Tes>)/DZ
1245    
1246  /(?P<Z>zz)(?P<A>aa)/I  /(?P<Z>zz)(?P<A>aa)/I
1247      zzaa\CZ      zzaa\CZ
# Line 1260  Line 1260 
1260      [10,20,30,5,5,4,4,2,43,23,4234]      [10,20,30,5,5,4,4,2,43,23,4234]
1261      []      []
1262    
1263  /(a(b(?2)c))?/D  /(a(b(?2)c))?/DZ
1264    
1265  /(a(b(?2)c))*/D  /(a(b(?2)c))*/DZ
1266    
1267  /(a(b(?2)c)){0,2}/D  /(a(b(?2)c)){0,2}/DZ
1268    
1269  /[ab]{1}+/D  /[ab]{1}+/DZ
1270    
1271  /((w\/|-|with)*(free|immediate)*.*?shipping\s*[!.-]*)/Ii  /((w\/|-|with)*(free|immediate)*.*?shipping\s*[!.-]*)/Ii
1272       Baby Bjorn Active Carrier - With free SHIPPING!!       Baby Bjorn Active Carrier - With free SHIPPING!!
# Line 1274  Line 1274 
1274  /((w\/|-|with)*(free|immediate)*.*?shipping\s*[!.-]*)/IiS  /((w\/|-|with)*(free|immediate)*.*?shipping\s*[!.-]*)/IiS
1275       Baby Bjorn Active Carrier - With free SHIPPING!!       Baby Bjorn Active Carrier - With free SHIPPING!!
1276    
1277  /a*.*b/ISD  /a*.*b/ISDZ
1278    
1279  /(a|b)*.?c/ISD  /(a|b)*.?c/ISDZ
1280    
1281  /abc(?C255)de(?C)f/D  /abc(?C255)de(?C)f/DZ
1282    
1283  /abcde/ICD  /abcde/ICDZ
1284    abcde    abcde
1285    abcdfe    abcdfe
1286    
1287  /a*b/ICD  /a*b/ICDZ
1288    ab    ab
1289    aaaab    aaaab
1290    aaaacb    aaaacb
1291    
1292  /a+b/ICD  /a+b/ICDZ
1293    ab    ab
1294    aaaab    aaaab
1295    aaaacb    aaaacb
1296    
1297  /(abc|def)x/ICD  /(abc|def)x/ICDZ
1298    abcx    abcx
1299    defx    defx
1300    abcdefzx    abcdefzx
# Line 1304  Line 1304 
1304    abcdabcd    abcdabcd
1305    abcdcdcdcdcd    abcdcdcdcdcd
1306    
1307  /([ab]{,4}c|xy)/ICD  /([ab]{,4}c|xy)/ICDZ
1308      Note: that { does NOT introduce a quantifier      Note: that { does NOT introduce a quantifier
1309    
1310  /([ab]{1,4}c|xy){4,5}?123/ICD  /([ab]{1,4}c|xy){4,5}?123/ICDZ
1311      aacaacaacaacaac123      aacaacaacaacaac123
1312    
1313  /\b.*/I  /\b.*/I
# Line 1667  a random value. /Ix Line 1667  a random value. /Ix
1667    
1668  /(d?|c)[ab]xyz/IS  /(d?|c)[ab]xyz/IS
1669    
1670  /^a*b\d/D  /^a*b\d/DZ
1671    
1672  /^a*+b\d/D  /^a*+b\d/DZ
1673    
1674  /^a*?b\d/D  /^a*?b\d/DZ
1675    
1676  /^a+A\d/D  /^a+A\d/DZ
1677      aaaA5      aaaA5
1678      ** Failers      ** Failers
1679      aaaa5      aaaa5
1680    
1681  /^a*A\d/IiD  /^a*A\d/IiDZ
1682      aaaA5      aaaA5
1683      aaaa5      aaaa5
1684    
# Line 1700  a random value. /Ix Line 1700  a random value. /Ix
1700  /Ix  /Ix
1701    large nest    large nest
1702    
1703  /a*\d/B  /a*\d/BZ
1704    
1705  /a*\D/B  /a*\D/BZ
1706    
1707  /0*\d/B  /0*\d/BZ
1708    
1709  /0*\D/B  /0*\D/BZ
1710    
1711  /a*\s/B  /a*\s/BZ
1712    
1713  /a*\S/B  /a*\S/BZ
1714    
1715  / *\s/B  / *\s/BZ
1716    
1717  / *\S/B  / *\S/BZ
1718    
1719  /a*\w/B  /a*\w/BZ
1720    
1721  /a*\W/B  /a*\W/BZ
1722    
1723  /=*\w/B  /=*\w/BZ
1724    
1725  /=*\W/B  /=*\W/BZ
1726    
1727  /\d*a/B  /\d*a/BZ
1728    
1729  /\d*2/B  /\d*2/BZ
1730    
1731  /\d*\d/B  /\d*\d/BZ
1732    
1733  /\d*\D/B  /\d*\D/BZ
1734    
1735  /\d*\s/B  /\d*\s/BZ
1736    
1737  /\d*\S/B  /\d*\S/BZ
1738    
1739  /\d*\w/B  /\d*\w/BZ
1740    
1741  /\d*\W/B  /\d*\W/BZ
1742    
1743  /\D*a/B  /\D*a/BZ
1744    
1745  /\D*2/B  /\D*2/BZ
1746    
1747  /\D*\d/B  /\D*\d/BZ
1748    
1749  /\D*\D/B  /\D*\D/BZ
1750    
1751  /\D*\s/B  /\D*\s/BZ
1752    
1753  /\D*\S/B  /\D*\S/BZ
1754    
1755  /\D*\w/B  /\D*\w/BZ
1756    
1757  /\D*\W/B  /\D*\W/BZ
1758    
1759  /\s*a/B  /\s*a/BZ
1760    
1761  /\s*2/B  /\s*2/BZ
1762    
1763  /\s*\d/B  /\s*\d/BZ
1764    
1765  /\s*\D/B  /\s*\D/BZ
1766    
1767  /\s*\s/B  /\s*\s/BZ
1768    
1769  /\s*\S/B  /\s*\S/BZ
1770    
1771  /\s*\w/B  /\s*\w/BZ
1772    
1773  /\s*\W/B  /\s*\W/BZ
1774    
1775  /\S*a/B  /\S*a/BZ
1776    
1777  /\S*2/B  /\S*2/BZ
1778    
1779  /\S*\d/B  /\S*\d/BZ
1780    
1781  /\S*\D/B  /\S*\D/BZ
1782    
1783  /\S*\s/B  /\S*\s/BZ
1784    
1785  /\S*\S/B  /\S*\S/BZ
1786    
1787  /\S*\w/B  /\S*\w/BZ
1788    
1789  /\S*\W/B  /\S*\W/BZ
1790    
1791  /\w*a/B  /\w*a/BZ
1792    
1793  /\w*2/B  /\w*2/BZ
1794    
1795  /\w*\d/B  /\w*\d/BZ
1796    
1797  /\w*\D/B  /\w*\D/BZ
1798    
1799  /\w*\s/B  /\w*\s/BZ
1800    
1801  /\w*\S/B  /\w*\S/BZ
1802    
1803  /\w*\w/B  /\w*\w/BZ
1804    
1805  /\w*\W/B  /\w*\W/BZ
1806    
1807  /\W*a/B  /\W*a/BZ
1808    
1809  /\W*2/B  /\W*2/BZ
1810    
1811  /\W*\d/B  /\W*\d/BZ
1812    
1813  /\W*\D/B  /\W*\D/BZ
1814    
1815  /\W*\s/B  /\W*\s/BZ
1816    
1817  /\W*\S/B  /\W*\S/BZ
1818    
1819  /\W*\w/B  /\W*\w/BZ
1820    
1821  /\W*\W/B  /\W*\W/BZ
1822    
1823  /[^a]+a/B  /[^a]+a/BZ
1824    
1825  /[^a]+a/Bi  /[^a]+a/BZi
1826    
1827  /[^a]+A/Bi  /[^a]+A/BZi
1828    
1829  /[^a]+b/B  /[^a]+b/BZ
1830    
1831  /[^a]+\d/B  /[^a]+\d/BZ
1832    
1833  /a*[^a]/B  /a*[^a]/BZ
1834    
1835  /(?P<abc>x)(?P<xyz>y)/I  /(?P<abc>x)(?P<xyz>y)/I
1836      xy\Cabc\Cxyz      xy\Cabc\Cxyz
# Line 1885  a random value. /Ix Line 1885  a random value. /Ix
1885      Xaaa      Xaaa
1886      Xaba      Xaba
1887    
1888  /^[\E\Qa\E-\Qz\E]+/B  /^[\E\Qa\E-\Qz\E]+/BZ
1889    
1890  /^[a\Q]bc\E]/B  /^[a\Q]bc\E]/BZ
1891    
1892  /^[a-\Q\E]/B  /^[a-\Q\E]/BZ
1893    
1894  /^(?P>abc)[()](?<abc>)/B  /^(?P>abc)[()](?<abc>)/BZ
1895    
1896  /^((?(abc)y)[()](?P<abc>x))+/B  /^((?(abc)y)[()](?P<abc>x))+/BZ
1897      (xy)x      (xy)x
1898    
1899  /^(?P>abc)\Q()\E(?<abc>)/B  /^(?P>abc)\Q()\E(?<abc>)/BZ
1900    
1901  /^(?P>abc)[a\Q(]\E(](?<abc>)/B  /^(?P>abc)[a\Q(]\E(](?<abc>)/BZ
1902    
1903  /^(?P>abc) # this is (a comment)  /^(?P>abc) # this is (a comment)
1904    (?<abc>)/Bx    (?<abc>)/BZx
1905    
1906  /^\W*(?:(?<one>(?<two>.)\W*(?&one)\W*\k<two>|)|(?<three>(?<four>.)\W*(?&three)\W*\k'four'|\W*.\W*))\W*$/Ii  /^\W*(?:(?<one>(?<two>.)\W*(?&one)\W*\k<two>|)|(?<three>(?<four>.)\W*(?&three)\W*\k'four'|\W*.\W*))\W*$/Ii
1907      1221      1221
# Line 1980  a random value. /Ix Line 1980  a random value. /Ix
1980  /^a.b/<lf>  /^a.b/<lf>
1981      a\rb      a\rb
1982      a\nb\<cr>      a\nb\<cr>
1983        a\x85b\<anycrlf>
1984      ** Failers      ** Failers
1985      a\nb      a\nb
1986      a\nb\<any>      a\nb\<any>
1987      a\rb\<cr>      a\rb\<cr>
1988      a\rb\<any>      a\rb\<any>
1989        a\x85b\<any>
1990        a\rb\<anycrlf>
1991    
1992  /^abc./mgx<any>  /^abc./mgx<any>
1993      abc1 \x0aabc2 \x0babc3xx \x0cabc4 \x0dabc5xx \x0d\x0aabc6 \x85abc7 \x{2028}abc8 \x{2029}abc9 JUNK      abc1 \x0aabc2 \x0babc3xx \x0cabc4 \x0dabc5xx \x0d\x0aabc6 \x85abc7 \x{2028}abc8 \x{2029}abc9 JUNK
# Line 2129  a random value. /Ix Line 2132  a random value. /Ix
2132      afoo      afoo
2133      \r\nfoo      \r\nfoo
2134      \nfoo      \nfoo
2135    
2136    /^$/mg<any>
2137        abc\r\rxyz
2138        abc\n\rxyz
2139        ** Failers
2140        abc\r\nxyz
2141    
2142    /(?m)^$/<any>g+
2143        abc\r\n\r\n
2144    
2145    /(?m)^$|^\r\n/<any>g+
2146        abc\r\n\r\n
2147    
2148    /(?m)$/<any>g+
2149        abc\r\n\r\n
2150    
2151    /abc.$/mgx<anycrlf>
2152        abc1\x0a abc2\x0b abc3\x0c abc4\x0d abc5\x0d\x0a abc6\x85 abc7\x{2028} abc8\x{2029} abc9
2153    
2154    /^X/m
2155        XABC
2156        ** Failers
2157        XABC\B
2158    
2159    /(ab|c)(?-1)/BZ
2160        abc
2161    
2162    /xy(?+1)(abc)/BZ
2163        xyabcabc
2164        ** Failers
2165        xyabc
2166    
2167    /x(?-0)y/
2168    
2169    /x(?-1)y/
2170    
2171    /x(?+0)y/
2172    
2173    /x(?+1)y/
2174    
2175    /^(abc)?(?(-1)X|Y)/BZ
2176        abcX
2177        Y
2178        ** Failers
2179        abcY
2180    
2181    /^((?(+1)X|Y)(abc))+/BZ
2182        YabcXabc
2183        YabcXabcXabc
2184        ** Failers
2185        XabcXabc
2186    
2187    /(?(-1)a)/BZ
2188    
2189    /((?(-1)a))/BZ
2190    
2191    /((?(-2)a))/BZ
2192    
2193    /^(?(+1)X|Y)/BZ
2194        Y
2195    
2196    /(foo)\Kbar/
2197        foobar
2198    
2199    /(foo)(\Kbar|baz)/
2200        foobar
2201        foobaz
2202    
2203    /(foo\Kbar)baz/
2204        foobarbaz
2205    
2206    /(?<A>tom|bon)-\k{A}/
2207        tom-tom
2208        bon-bon
2209        ** Failers
2210        tom-bon
2211    
2212    /(?<A>tom|bon)-\g{A}/
2213        tom-tom
2214        bon-bon
2215    
2216    /\g{A/
2217    
2218    /(?|(abc)|(xyz))/BZ
2219       >abc<
2220       >xyz<
2221    
2222    /(x)(?|(abc)|(xyz))(x)/BZ
2223        xabcx
2224        xxyzx
2225    
2226    /(x)(?|(abc)(pqr)|(xyz))(x)/BZ
2227        xabcpqrx
2228        xxyzx
2229    
2230    /(?|(abc)|(xyz))\1/
2231        abcabc
2232        xyzxyz
2233        ** Failers
2234        abcxyz
2235        xyzabc
2236    
2237    /(?|(abc)|(xyz))(?1)/
2238        abcabc
2239        xyzabc
2240        ** Failers
2241        xyzxyz
2242    
2243    /\H\h\V\v/
2244        X X\x0a
2245        X\x09X\x0b
2246        ** Failers
2247        \xa0 X\x0a
2248    
2249    /\H*\h+\V?\v{3,4}/
2250        \x09\x20\xa0X\x0a\x0b\x0c\x0d\x0a
2251        \x09\x20\xa0\x0a\x0b\x0c\x0d\x0a
2252        \x09\x20\xa0\x0a\x0b\x0c
2253        ** Failers
2254        \x09\x20\xa0\x0a\x0b
2255    
2256    /\H{3,4}/
2257        XY  ABCDE
2258        XY  PQR ST
2259    
2260    /.\h{3,4}./
2261        XY  AB    PQRS
2262    
2263    /\h*X\h?\H+Y\H?Z/
2264        >XNNNYZ
2265        >  X NYQZ
2266        ** Failers
2267        >XYZ
2268        >  X NY Z
2269    
2270    /\v*X\v?Y\v+Z\V*\x0a\V+\x0b\V{2,3}\x0c/
2271        >XY\x0aZ\x0aA\x0bNN\x0c
2272        >\x0a\x0dX\x0aY\x0a\x0bZZZ\x0aAAA\x0bNNN\x0c
2273    
2274    /[\h]/BZ
2275        >\x09<
2276    
2277    /[\h]+/BZ
2278        >\x09\x20\xa0<
2279    
2280    /[\v]/BZ
2281    
2282    /[\H]/BZ
2283    
2284    /[^\h]/BZ
2285    
2286    /[\V]/BZ
2287    
2288    /[\x0a\V]/BZ
2289    
2290    /\H++X/BZ
2291        ** Failers
2292        XXXX
2293    
2294    /\H+\hY/BZ
2295        XXXX Y
2296    
2297    /\H+ Y/BZ
2298    
2299    /\h+A/BZ
2300    
2301    /\v*B/BZ
2302    
2303    /\V+\x0a/BZ
2304    
2305    /A+\h/BZ
2306    
2307    / *\H/BZ
2308    
2309    /A*\v/BZ
2310    
2311    /\x0b*\V/BZ
2312    
2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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)0)0)0)0)0)0)0)
2331    
2332    /[\E]AAA/
2333    
2334    /[\Q\E]AAA/
2335    
2336    /[^\E]AAA/
2337    
2338    /[^\Q\E]AAA/
2339    
2340    /[\E^]AAA/
2341    
2342    /[\Q\E^]AAA/
2343    
2344    /A(*PRUNE)B(*SKIP)C(*THEN)D(*COMMIT)E(*F)F(*FAIL)G(?!)H(*ACCEPT)I/BZ
2345    
2346    /^a+(*FAIL)/
2347        aaaaaa
2348    
2349    /a+b?c+(*FAIL)/
2350        aaabccc
2351    
2352    /a+b?(*PRUNE)c+(*FAIL)/
2353        aaabccc
2354    
2355    /a+b?(*COMMIT)c+(*FAIL)/
2356        aaabccc
2357    
2358    /a+b?(*SKIP)c+(*FAIL)/
2359        aaabcccaaabccc
2360    
2361    /^(?:aaa(*THEN)\w{6}|bbb(*THEN)\w{5}|ccc(*THEN)\w{4}|\w{3})/
2362        aaaxxxxxx
2363        aaa++++++
2364        bbbxxxxx
2365        bbb+++++
2366        cccxxxx
2367        ccc++++
2368        dddddddd
2369    
2370    /^(aaa(*THEN)\w{6}|bbb(*THEN)\w{5}|ccc(*THEN)\w{4}|\w{3})/
2371        aaaxxxxxx
2372        aaa++++++
2373        bbbxxxxx
2374        bbb+++++
2375        cccxxxx
2376        ccc++++
2377        dddddddd
2378    
2379    /a+b?(*THEN)c+(*FAIL)/
2380        aaabccc
2381    
2382    /(A (A|B(*ACCEPT)|C) D)(E)/x
2383        ABX
2384        AADE
2385        ACDE
2386        ** Failers
2387        AD
2388    
2389    /^a+(*FAIL)/C
2390        aaaaaa
2391    
2392    /a+b?c+(*FAIL)/C
2393        aaabccc
2394    
2395    /a+b?(*PRUNE)c+(*FAIL)/C
2396        aaabccc
2397    
2398    /a+b?(*COMMIT)c+(*FAIL)/C
2399        aaabccc
2400    
2401    /a+b?(*SKIP)c+(*FAIL)/C
2402        aaabcccaaabccc
2403    
2404    /a+b?(*THEN)c+(*FAIL)/C
2405        aaabccc
2406    
2407    /a(*PRUNE:XXX)b/
2408    
2409    /a(*MARK)b/
2410    
2411    /(?i:A{1,}\6666666666)/
2412    
2413    /\g6666666666/
2414    
2415    /[\g6666666666]/
2416    
2417    /(?1)\c[/
2418    
2419    /.+A/<crlf>
2420        \r\nA
2421    
2422    /\nA/<crlf>
2423        \r\nA
2424    
2425    /[\r\n]A/<crlf>
2426        \r\nA
2427    
2428    /(\r|\n)A/<crlf>
2429        \r\nA
2430    
2431  / End of testinput2 /  / End of testinput2 /

Legend:
Removed from v.102  
changed lines
  Added in v.226

  ViewVC Help
Powered by ViewVC 1.1.5