/[pcre]/code/trunk/testoutput
ViewVC logotype

Diff of /code/trunk/testoutput

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

revision 21 by nigel, Sat Feb 24 21:38:37 2007 UTC revision 23 by nigel, Sat Feb 24 21:38:41 2007 UTC
# Line 1  Line 1 
1  Testing Perl-Compatible Regular Expressions  PCRE version 2.00 24-Sep-1998
 PCRE version 1.09 28-Apr-1998  
2    
3  /the quick brown fox/  /the quick brown fox/
4      the quick brown fox      the quick brown fox
# Line 1984  No match Line 1983  No match
1983  /\Aabc\Z/m  /\Aabc\Z/m
1984      abc      abc
1985   0: abc   0: abc
1986        abc\n
1987     0: abc
1988      *** Failers      *** Failers
1989  No match  No match
1990      qqq\nabc      qqq\nabc
# Line 1992  No match Line 1993  No match
1993  No match  No match
1994      qqq\nabc\nzzz      qqq\nabc\nzzz
1995  No match  No match
1996    
1997  /\A(.)*\Z/s  /\A(.)*\Z/s
1998      abc\ndef      abc\ndef
1999   0: abc\x0adef   0: abc\x0adef
# Line 2078  No match Line 2079  No match
2079   0: abcABC   0: abcABC
2080   1: abc   1: abc
2081    
2082  /(main(OPT)?)+/  /(main(O)?)+/
2083      mainmain      mainmain
2084   0: mainmain   0: mainmain
2085   1: main   1: main
2086      mainOPTmain      mainOmain
2087   0: mainOPTmain   0: mainOmain
2088   1: main   1: main
2089   2: OPT   2: O
2090    
2091  /ab{3cd/  /ab{3cd/
2092      ab{3cd      ab{3cd
# Line 2377  No match Line 2378  No match
2378  /P[^*]TAIRE[^*]{1,}?LL/  /P[^*]TAIRE[^*]{1,}?LL/
2379      xxxxxxxxxxxPSTAIREISLLxxxxxxxxx      xxxxxxxxxxxPSTAIREISLLxxxxxxxxx
2380   0: PSTAIREISLL   0: PSTAIREISLL
2381    
2382    /(\.\d\d[1-9]?)\d+/
2383        1.230003938
2384     0: .230003938
2385     1: .23
2386        1.875000282
2387     0: .875000282
2388     1: .875
2389        1.235
2390     0: .235
2391     1: .23
2392    
2393    /(\.\d\d((?=0)|\d(?=\d)))/
2394        1.230003938
2395     0: .23
2396     1: .23
2397     2:
2398        1.875000282
2399     0: .875
2400     1: .875
2401     2: 5
2402        *** Failers
2403    No match
2404        1.235
2405    No match
2406    
2407    /a(?)b/
2408        ab
2409     0: ab
2410    
2411    /\b(foo)\s+(\w+)/i
2412        Food is on the foo table
2413     0: foo table
2414     1: foo
2415     2: table
2416    
2417    /foo(.*)bar/
2418        The food is under the bar in the barn.
2419     0: food is under the bar in the bar
2420     1: d is under the bar in the
2421    
2422    /foo(.*?)bar/
2423        The food is under the bar in the barn.
2424     0: food is under the bar
2425     1: d is under the
2426    
2427    /(.*)(\d*)/
2428        I have 2 numbers: 53147
2429     0: I have 2 numbers: 53147
2430     1: I have 2 numbers: 53147
2431     2:
2432    
2433    /(.*)(\d+)/
2434        I have 2 numbers: 53147
2435     0: I have 2 numbers: 53147
2436     1: I have 2 numbers: 5314
2437     2: 7
2438    
2439    /(.*?)(\d*)/
2440        I have 2 numbers: 53147
2441     0:
2442     1:
2443     2:
2444    
2445    /(.*?)(\d+)/
2446        I have 2 numbers: 53147
2447     0: I have 2
2448     1: I have
2449     2: 2
2450    
2451    /(.*)(\d+)$/
2452        I have 2 numbers: 53147
2453     0: I have 2 numbers: 53147
2454     1: I have 2 numbers: 5314
2455     2: 7
2456    
2457    /(.*?)(\d+)$/
2458        I have 2 numbers: 53147
2459     0: I have 2 numbers: 53147
2460     1: I have 2 numbers:
2461     2: 53147
2462    
2463    /(.*)\b(\d+)$/
2464        I have 2 numbers: 53147
2465     0: I have 2 numbers: 53147
2466     1: I have 2 numbers:
2467     2: 53147
2468    
2469    /(.*\D)(\d+)$/
2470        I have 2 numbers: 53147
2471     0: I have 2 numbers: 53147
2472     1: I have 2 numbers:
2473     2: 53147
2474    
2475    /^\D*(?!123)/
2476        ABC123
2477     0: AB
2478    
2479    /^(\D*)(?=\d)(?!123)/
2480        ABC445
2481     0: ABC
2482     1: ABC
2483        *** Failers
2484    No match
2485        ABC123
2486    No match
2487    
2488  / End of test input /  / End of test input /
2489    

Legend:
Removed from v.21  
changed lines
  Added in v.23

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12