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

Diff of /code/trunk/testinput3

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 1662  Line 1662 
1662      *** Failers      *** Failers
1663      123999foo      123999foo
1664    
1665    /<a[\s]+href[\s]*=[\s]*          # find <a href=
1666     ([\"\'])?                       # find single or double quote
1667     (?(1) (.*?)\1 | ([^\s]+))       # if quote found, match up to next matching
1668                                     # quote, otherwise match up to next space
1669    /isx
1670        <a href=abcd xyz
1671        <a href=\"abcd xyz pqr\" cats
1672        <a href=\'abcd xyz pqr\' cats
1673    
1674    /<a\s+href\s*=\s*                # find <a href=
1675     (["'])?                         # find single or double quote
1676     (?(1) (.*?)\1 | (\S+))          # if quote found, match up to next matching
1677                                     # quote, otherwise match up to next space
1678    /isx
1679        <a href=abcd xyz
1680        <a href=\"abcd xyz pqr\" cats
1681        <a href       =       \'abcd xyz pqr\' cats
1682    
1683    /<a\s+href(?>\s*)=(?>\s*)        # find <a href=
1684     (["'])?                         # find single or double quote
1685     (?(1) (.*?)\1 | (\S+))          # if quote found, match up to next matching
1686                                     # quote, otherwise match up to next space
1687    /isx
1688        <a href=abcd xyz
1689        <a href=\"abcd xyz pqr\" cats
1690        <a href       =       \'abcd xyz pqr\' cats
1691    
1692  / End of test input /  / End of test input /

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

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12