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

Diff of /code/trunk/testoutput3

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

revision 38 by nigel, Sat Feb 24 21:39:09 2007 UTC revision 39 by nigel, Sat Feb 24 21:39:13 2007 UTC
# Line 1  Line 1 
1  PCRE version 2.07 29-Jul-1999  PCRE version 2.08 31-Aug-1999
2    
3  /(?<!bar)foo/  /(?<!bar)foo/
4      foo      foo
# Line 2868  No match Line 2868  No match
2868      123999foo      123999foo
2869  No match  No match
2870    
2871    /<a[\s]+href[\s]*=[\s]*          # find <a href=
2872     ([\"\'])?                       # find single or double quote
2873     (?(1) (.*?)\1 | ([^\s]+))       # if quote found, match up to next matching
2874                                     # quote, otherwise match up to next space
2875    /isx
2876        <a href=abcd xyz
2877     0: <a href=abcd
2878     1: <unset>
2879     2: <unset>
2880     3: abcd
2881        <a href=\"abcd xyz pqr\" cats
2882     0: <a href="abcd xyz pqr"
2883     1: "
2884     2: abcd xyz pqr
2885        <a href=\'abcd xyz pqr\' cats
2886     0: <a href='abcd xyz pqr'
2887     1: '
2888     2: abcd xyz pqr
2889    
2890    /<a\s+href\s*=\s*                # find <a href=
2891     (["'])?                         # find single or double quote
2892     (?(1) (.*?)\1 | (\S+))          # if quote found, match up to next matching
2893                                     # quote, otherwise match up to next space
2894    /isx
2895        <a href=abcd xyz
2896     0: <a href=abcd
2897     1: <unset>
2898     2: <unset>
2899     3: abcd
2900        <a href=\"abcd xyz pqr\" cats
2901     0: <a href="abcd xyz pqr"
2902     1: "
2903     2: abcd xyz pqr
2904        <a href       =       \'abcd xyz pqr\' cats
2905     0: <a href       =       'abcd xyz pqr'
2906     1: '
2907     2: abcd xyz pqr
2908    
2909    /<a\s+href(?>\s*)=(?>\s*)        # find <a href=
2910     (["'])?                         # find single or double quote
2911     (?(1) (.*?)\1 | (\S+))          # if quote found, match up to next matching
2912                                     # quote, otherwise match up to next space
2913    /isx
2914        <a href=abcd xyz
2915     0: <a href=abcd
2916     1: <unset>
2917     2: <unset>
2918     3: abcd
2919        <a href=\"abcd xyz pqr\" cats
2920     0: <a href="abcd xyz pqr"
2921     1: "
2922     2: abcd xyz pqr
2923        <a href       =       \'abcd xyz pqr\' cats
2924     0: <a href       =       'abcd xyz pqr'
2925     1: '
2926     2: abcd xyz pqr
2927    
2928  / End of test input /  / End of test input /
2929    

Legend:
Removed from v.38  
changed lines
  Added in v.39

  ViewVC Help
Powered by ViewVC 1.1.5