Array of captures and new line in html



  • So I have the following response:

           <tr>
            
                      <td height="20" class="maintxt" width="50%"><b>Geldstatus</b></td>
            
                      <td class="maintxt" width="50%">Sloeber</td>
            
                     </tr>
            
                     
            
                     <tr>
            
                      <td height="20" class="maintxt" width="50%"><b>Kogels</b></td>        
            
                      <td class="maintxt" width="50%">7.080</td>
            
                     </tr>
            
                     
            
                     <tr>
            
                      <td height="20" class="maintxt" width="50%"><b>Belcredits</b></td>
            
                      <td class="maintxt" width="50%">10</td>
            
                     </tr>
            
                     
            
                     <tr>
            
                      <td height="20" class="maintxt" width="50%"><b>Betaald</b></td>
            
                      <td class="maintxt" width="50%">0 dagen</td>
            
                     </tr>
            
                     
            
                     <tr>
            
                      <td height="20" class="maintxt" width="50%"><b>Clicks</b></td>        
            
                      <td class="maintxt" width="50%">2.174.139</td>
            
                     </tr>
            
                     
            
                     <tr>
            
                      <td height="20" class="maintxt" width="50%"><b>Power</b></td>        
            
                      <td class="maintxt" width="50%">1.236.922.870</td>
            
                     </tr>
            
                     
            
                     <tr>
            
                      <td height="20" class="maintxt" width="50%"><b>Land</b></td>
            
                      <td class="maintxt" width="50%">Italie</td>
            
                     </tr>
            
                     
            
                     <tr>
            
                      <td height="20" class="maintxt" width="50%"><b>Eerpunten</b></td>
            
                      <td class="maintxt" width="50%">0</td>
            
                     </tr>
            
                     
            
                     
            
                     <tr>
            
                      <td height="20" class="maintxt" width="50%"><b>Testament</b></td>
            
                      <td class="maintxt" width="50%">Geen</td>
            
                     </tr>
            
                     
            
                     <tr>
            
                      <td height="20" class="maintxt" width="50%"><b>Familie</b></td>
            
                      <td class="maintxt" width="50%">Geen</td>
            
                     </tr>
    
    

    So I would like to capture thing between "<td class="maintxt" width="50%">" and "</td>" I was thinking of crating an array and then making an output like Name: <CAPTURE[0]>. Also due to new lines in the html I cannot get an accurate capture is there any way to tell OB its a new line?

    thx in advance


  • Admin

    Hey, you could use CSS Selector or Regex in this case, I think they would be better. What exactly do you want to parse? Sloeber?


Log in to reply