Removing duplicate lines from html

Get help with installation and running here.

Moderators: DataMystic Support, Moderators

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

Removing duplicate lines from html

Postby OwlTheFeared » Tue Sep 28, 2004 3:30 am

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: 2138
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Postby DataMystic Support » Thu Feb 24, 2005 8:51 am

What is the problem?

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

Simon Carter, http://DataMystic.com/forums/index.php
http://PredictBGL.com - Insulin dose calculator for Type 1 diabetes
http://DownloadPipe.com - 250,000 free software downloads
http://DetachPipe.com - send huge email attachments


Return to “TextPipe Tips and Tricks, Questions and Support”

Who is online

Users browsing this forum: No registered users and 1 guest