[Gllug] Batch Text Replacement

Henry Gilbert henry.gilbert at gmail.com
Mon Oct 29 09:08:13 UTC 2007


>
> >I was really looking for something more GUI
>
> Why?

In this case, there is a lot of code to be annihilated that include
carriage returns.

Consider a snippet like this:

<table border="1" width="100%" cellpadding="2" height="13">
 <tr>
   <td width="50%" valign="middle" align="center" height="5">
     <applet code="fphover.class" width="330" height="28">
       <param name="textcolor" value="#FFFFFF">
       <param name="color" value="#800080">
       <param name="hovercolor" value="#FF00FF">
       <param name="effect" value="glow">
       <param name="url" valuetype="ref" value="information_main.htm">
       <param name="text" value="Back to INFORMATION PAGE">
     </applet>
   </td>
   <td width="50%" valign="middle" align="center" height="5">
     <applet code="fphover.class" width="330" height="28">
       <param name="textcolor" value="#FFFFFF">
       <param name="color" value="#008080">
       <param name="hovercolor" value="#00CC99">
       <param name="effect" value="glow">
       <param name="url" valuetype="ref" value="times_main.htm">
       <param name="text" value="OPENING TIMES & APPOINTMENTS">
     </applet>
   </td>
 </tr>
</table>

Now to delete such mess but not delete other tables or messes .. I could either:

A) Think of some unique matching key so that whole thing gets deleted
somehow in CLI. (500 Brain-KCals)

B) Or I could copy and paste on some nifty GUI and click Replace. (10
Brain-KCals)


> There are a few pathological cases it won't catch (like escaped
> double quotes in the style string), but you're unlikely to find
> them in the real world.
>

FrontPage code = Pathological throughout.

--
SEO Mastery
http://www.alliancetec.com
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list