Removing duplicate lines from html

Get help with installation and running here.

Moderators: DataMystic Support, Moderators, DataMystic Support, Moderators, DataMystic Support, Moderators

Post Reply
OwlTheFeared
Posts: 1
Joined: Tue Sep 28, 2004 3:10 am
Location: Sweden
Contact:

Removing duplicate lines from html

Post by OwlTheFeared »

Hello, im woundering how to do this with textpipe

i have html file, and im doing a makover for a website, on one site it contains pdf adresses, description and how big the pdf file is, and its all in a td looking like this: ( note one product )

Code: Select all

                         <tr height="3">
                              <td width="20"><img src="/global_img/blank.gif" width="1" height="1"></td>
                              <td width="737" colspan="6" align="left" valign="middle"><img src="/global_img/blank.gif" width="1" height="1"></td>
                              <td width="9"><img src="/global_img/blank.gif" width="1" height="1"></td>
                              <td width="14" bgcolor="#ffffff"><img src="/global_img/blank.gif" width="1" height="1"></td>
                         </tr>
                         <tr height="1">
                              <td width="20"><img src="/global_img/blank.gif" width="1" height="1"></td>
                              <td colspan="6" align="left" valign="middle" bgcolor="#005598" width="737"></td>
                              <td width="9" bgcolor="#005598" ><img src="/global_img/blank.gif" width="1" height="1"></td>
                              <td width="14" bgcolor="#ffffff"><img src="/global_img/blank.gif" width="1" height="1"></td>
                         </tr>


                         <tr height="3">
                              <td width="20"><img src="/global_img/blank.gif" width="1" height="1"></td>
                              <td width="737" colspan="6"></td>
                              <td width="9"><img src="/global_img/blank.gif" width="1" height="1"></td>
                              <td width="14" bgcolor="#ffffff"><img src="/global_img/blank.gif" width="1" height="1"></td>
                         </tr>
                         <tr height="25">
                              <td width="20"><img src="/global_img/blank.gif" width="1" height="1"></td>
                              <td width="30" class="grau_11" align="left" valign="middle"><a href='/de/FLE/ATT135SI.pdf' target='blank'><img src="/global_img/logo_pdf.gif" alt="" height="25" width="25" border="0"></a></td>
                              <td width="120" class="grau_11" align="left" valign="middle"><a href='/de/FLE/ATT135SI.pdf' target='blank'><span class="grau_11">ATT-135/SI</span></a></td>
                              <td width="420" class="grau_11" valign="middle"><a href='/de/FLE/ATT135SI.pdf' target='blank'><span class="grau_11">PA volume control, to be integrated</span></a></td>
                              <td width="7"><img src="/global_img/blank.gif" width="1" height="1"></td>
                              <td width="80" class="grau_11" align="left" valign="middle"><a href='/de/FLE/ATT135SI.pdf' target='blank'><span class="grau_11">17.12.2003</span></a></td>
                              <td width="80" class="m_lauftext_grau" align="right" valign="middle"><a href='/de/FLE/ATT135SI.pdf' target='blank'><span class="grau_11">37,1 KB </span></a></td>
                              <td width="9"><img src="/global_img/blank.gif" width="1" height="1"></td>
                              <td width="14" bgcolor="#ffffff"><img src="/global_img/blank.gif" width="1" height="1"></td></tr></table>
Now what i want to do is have that code, looking like this instead

Code: Select all


    <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="1277" id="AutoNumber1" height="1">
      <tr>
        <td width="36" height="1"><span class><font face="Verdana" size="1">
        <img src="http://www.electripoint.com/images/pdf_icon.gif" border="0" width="16" height="16"></font></span></td>
        <td width="81" height="1">
        <p align="center">    <a href="http://www.monacor.de/de/FLE/ATT135SI.pdf" target="blank">
    download</a></td>
        <td width="100" height="1">ATT-135/SI</td>
        <td width="272" height="1">PA volume control, to be integrated</td>
        <td width="100" height="1">17.12.2003</td>
        <td width="688" height="1">37,1KB</td>
      </tr>
    </table>

then i would get all of these 800 pdf files in nice neat rows =)
so if anyone could help me i would be so happy, thx
User avatar
DataMystic Support
Site Admin
Posts: 2227
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Post by DataMystic Support »

What is the problem?

Surely this is a series of search/replaces for the bits you don't want, replacing them with nothing?
Post Reply