#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2009
    Posts
    10
    Rep Power
    0

    Why "Header" returns me redundant data?


    Code:
    <TABLE\s+class="used-results\s+maincol"\s+cellSpacing="0">
    \s*
    <tr\s+class="header\s+maincol">\s*
    (?<Header>.*?(?=</tr>))</tr>
    
    \s+
    (?<Content>
    <tr(?:[^>]+?)>
    .+
    (?=</table>)
    
    )
    </table>
    I apply this regex in Regulator to the file zipped here

    Why does "Header" group contains 11111111111111 in it? It's supposed to stop at the first </tr>.


    And if I remove

    Code:
    (?<Content>
    <tr(?:[^>]+?)>
    .+
    (?=</table>)
    
    )
    </table>
    it becomes OK.

    Comments on this post

    • prometheuzz disagrees : Don't go posting your questions in multiple forums please. At least post references to them!
  2. #2
  3. No Profile Picture
    User 165270
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2005
    Posts
    497
    Rep Power
    938
    Cross posted in two other forums.

    Answered in: http://forums.devnetwork.net/viewtop...?f=38&t=103847

IMN logo majestic logo threadwatch logo seochat tools logo