Jump to content

RegEx between two specific tags


btray77

Recommended Posts

I really need to go buy that regex book, but I just don't have the time to read it lately.

 

I'm trying to get the data between these two tags:

Tag A: <table style="border-collapse: collapse;" id="table9" bordercolorlight="#FFFFFF" border="1" width="100%">

Tag B: </table>

 

What I want is going to be in "RED".

Data Sample:

 

<b>ITEM DESCRIPTION</b></p></td>

</tr>

 

</tbody></table>

</div>

<div align="center">

 </div>

</div>

<div align="left">

<table style="border-collapse: collapse;" id="table9" bordercolorlight="#FFFFFF" border="1" width="100%">

<tbody><tr>

<td bgcolor="#ffffff" width="107">

 

<p></p></td>

</tr>

<tr>

<td bgcolor="#941410" width="107">

<p align="right"><font color="#ffffff"><b>Gender   </b></font></p></td>

<td bgcolor="#ffc3bd"> MEN</td>

</tr>

 

<tr>

<td bgcolor="#941410" width="107">

<p align="right"><font color="#ffffff"><b>Name   </b></font></p></td>

<td bgcolor="#ffc3bd"> VERSACE EAU FRAICHE by VERSACE MAN</td>

</tr>

<tr>

<td bgcolor="#941410" width="107">

 

<p align="right"><font color="#ffffff"><b>Size   </b></font></p></td>

<td bgcolor="#ffc3bd"> 3.4 oz EDT SPRAY</td>

</tr>

<tr>

<td bgcolor="#941410" width="107" height="24">

<p align="right"><font color="#ffffff"><b>Packaging   </b></font></p></td>

 

<td bgcolor="#ffc3bd" height="24"> BOX</td>

</tr>

<tr>

<td bgcolor="#941410" width="107">

<p align="right"><font color="#ffffff"><b>Condition   </b></font></p></td>

<td bgcolor="#ffc3bd"> BRAND NEW in BOX !  </td>

 

</tr>

</tbody></table>

</div>

</td>

</tr>

<tr>

<td> <p align="center">

<font style="font-size: 10pt; font-weight: 700;" color="#cc0000" face="Verdana">

 

 

Any help will be appreciated.. 

 

B

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.