B
Bart van den Burg
Hi
I need to empty the very last cell that can be found in $r
Currently, I have
$r =~ s:<td>.*</td></tr>$:<td></td></tr>:;
But that merges all cells into one empty cell...
Any ideas on how to do this?
Thanks
Bart
HTML source table =
<table>
<tr class='row1'><td>Name</td><td>Referer</td></tr>
<tr class='row2'><td>Description</td><td>Hoe ben je op deze site terecht
gekomen?</td></tr>
<tr class='row1'><td colspan='2'><table>
<tr><th>no</th><th>Option</th><th>Votes</th></tr>
<tr><td>1.</td><td>Zoekmachine</td><td>17</td><td><img
src='images/delete.gif'/></td><td></td><td><a
href="admin.pl?sessionID=9ZooUn8AAAEAACNWBk0AAAAA&amp;action=poll&ac
tion2=edit&action3=moveup&id=3&option="><img
src='images/arrowdown.gif'/></a></td></tr>
<tr><td>2.</td><td>Andere site</td><td>17</td><td><img
src='images/delete.gif'/></td><td><img src='images/arrowup.gif'/></td><td><a
href="admin.pl?sessionID=9ZooUn8AAAEAACNWBk0AAAAA&amp;action=poll&ac
tion2=edit&action3=moveup&id=3&option="><img
src='images/arrowdown.gif'/></a></td></tr>
<tr><td>3.</td><td>Ander persoon</td><td>10</td><td><img
src='images/delete.gif'/></td><td><img src='images/arrowup.gif'/></td><td><a
href="admin.pl?sessionID=9ZooUn8AAAEAACNWBk0AAAAA&amp;action=poll&ac
tion2=edit&action3=moveup&id=3&option="><img
src='images/arrowdown.gif'/></a></td></tr>
<tr><td>4.</td><td>Gewoon URL gegokt</td><td>11</td><td><img
src='images/delete.gif'/></td><td><img src='images/arrowup.gif'/></td><td><a
href="admin.pl?sessionID=9ZooUn8AAAEAACNWBk0AAAAA&amp;action=poll&ac
tion2=edit&action3=moveup&id=3&option="><img
src='images/arrowdown.gif'/></a></td></tr>
<tr><td>5.</td><td>Anders</td><td>6</td><td><img
src='images/delete.gif'/></td><td><img src='images/arrowup.gif'/></td><td><a
href="admin.pl?sessionID=9ZooUn8AAAEAACNWBk0AAAAA&amp;action=poll&ac
tion2=edit&action3=moveup&id=3&option="><img
src='images/arrowdown.gif'/></a></td></tr>
</table>
</td></tr>
<tr class='row2'><td>Date added</td><td>2003-09-24 00:00:00</td></tr>
</table>
I need to empty the very last cell that can be found in $r
Currently, I have
$r =~ s:<td>.*</td></tr>$:<td></td></tr>:;
But that merges all cells into one empty cell...
Any ideas on how to do this?
Thanks
Bart
HTML source table =
<table>
<tr class='row1'><td>Name</td><td>Referer</td></tr>
<tr class='row2'><td>Description</td><td>Hoe ben je op deze site terecht
gekomen?</td></tr>
<tr class='row1'><td colspan='2'><table>
<tr><th>no</th><th>Option</th><th>Votes</th></tr>
<tr><td>1.</td><td>Zoekmachine</td><td>17</td><td><img
src='images/delete.gif'/></td><td></td><td><a
href="admin.pl?sessionID=9ZooUn8AAAEAACNWBk0AAAAA&amp;action=poll&ac
tion2=edit&action3=moveup&id=3&option="><img
src='images/arrowdown.gif'/></a></td></tr>
<tr><td>2.</td><td>Andere site</td><td>17</td><td><img
src='images/delete.gif'/></td><td><img src='images/arrowup.gif'/></td><td><a
href="admin.pl?sessionID=9ZooUn8AAAEAACNWBk0AAAAA&amp;action=poll&ac
tion2=edit&action3=moveup&id=3&option="><img
src='images/arrowdown.gif'/></a></td></tr>
<tr><td>3.</td><td>Ander persoon</td><td>10</td><td><img
src='images/delete.gif'/></td><td><img src='images/arrowup.gif'/></td><td><a
href="admin.pl?sessionID=9ZooUn8AAAEAACNWBk0AAAAA&amp;action=poll&ac
tion2=edit&action3=moveup&id=3&option="><img
src='images/arrowdown.gif'/></a></td></tr>
<tr><td>4.</td><td>Gewoon URL gegokt</td><td>11</td><td><img
src='images/delete.gif'/></td><td><img src='images/arrowup.gif'/></td><td><a
href="admin.pl?sessionID=9ZooUn8AAAEAACNWBk0AAAAA&amp;action=poll&ac
tion2=edit&action3=moveup&id=3&option="><img
src='images/arrowdown.gif'/></a></td></tr>
<tr><td>5.</td><td>Anders</td><td>6</td><td><img
src='images/delete.gif'/></td><td><img src='images/arrowup.gif'/></td><td><a
href="admin.pl?sessionID=9ZooUn8AAAEAACNWBk0AAAAA&amp;action=poll&ac
tion2=edit&action3=moveup&id=3&option="><img
src='images/arrowdown.gif'/></a></td></tr>
</table>
</td></tr>
<tr class='row2'><td>Date added</td><td>2003-09-24 00:00:00</td></tr>
</table>