/[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 65 by nigel, Sat Feb 24 21:40:08 2007 UTC revision 81 by nigel, Sat Feb 24 21:40:59 2007 UTC
# 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  /^[[:blank:]]/D
680    
681  /^[[:cntrl:]]/D  /^[[:cntrl:]]/D
# Line 890  Line 908 
908    
909  /\N{name}/  /\N{name}/
910    
 /\pP/  
   
 /\PP/  
   
 /\p{prop}/  
   
 /\P{prop}/  
   
911  /\u/  /\u/
912    
913  /\U/  /\U/
914    
 /\X/  
   
915  /[/  /[/
916    
917  /[a-/  /[a-/
# Line 1061  Line 1069 
1069  /(?<=(abc)(?C))xyz/  /(?<=(abc)(?C))xyz/
1070     abcxyz\C+     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/  /(?C)abc/
1079    
1080  /(?C)^abc/  /(?C)^abc/
# Line 1229  Line 1243 
1243    
1244  /(?P<abc>abc(?P<def>def)(?P<abc>xyz))/  /(?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    /(?i)(?-i)AbCd/
1428        AbCd
1429        ** Failers
1430        abcd
1431    
1432    /a{11111111111111111111}/
1433    
1434    /(){64294967295}/
1435    
1436    /(){2,4294967295}/
1437    
1438    "(?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"
1439        abcdefghijklAkB
1440    
1441    "(?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"
1442        abcdefghijklAkB
1443    
1444    "(a)(b)(c)(d)(e)(f)(g)(h)(i)(j)(k)(l)A\11B"
1445        abcdefghijklAkB
1446    
1447    "(?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)"
1448        aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
1449    
1450    "(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)"
1451        aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
1452    
1453  / End of testinput2 /  / End of testinput2 /

Legend:
Removed from v.65  
changed lines
  Added in v.81

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12