K
Karl
Hi everyone!
I would like to write a macro that comments out certain columns in a table
Input:
<table>
<tr>
<td>col 1</td>
<td><a href="col2">col 2</a></td>
<td>col 3</td>
<td>col 4</td>
<td>col 5</td>
</tr>
</table>
output:
<table>
<tr>
<td>col 1</td>
<td><a href="col2">col 2</a></td>
<!--
<td>col 3</td>
<td>col 4</td>
<td>col 5</td>
-->
</tr>
<tr>
[...]
</tr>
</table>
I'm new to Visual Basics but a handy Java programmer.
How would a go about? Is there any regexp library I would use to find the
desired columns?
If someone can give me a code snippet to start working with, to sort of kick
me
in the right direction, I'll figure the rest out.
Many thanks
/Karl
I would like to write a macro that comments out certain columns in a table
Input:
<table>
<tr>
<td>col 1</td>
<td><a href="col2">col 2</a></td>
<td>col 3</td>
<td>col 4</td>
<td>col 5</td>
</tr>
</table>
output:
<table>
<tr>
<td>col 1</td>
<td><a href="col2">col 2</a></td>
<!--
<td>col 3</td>
<td>col 4</td>
<td>col 5</td>
-->
</tr>
<tr>
[...]
</tr>
</table>
I'm new to Visual Basics but a handy Java programmer.
How would a go about? Is there any regexp library I would use to find the
desired columns?
If someone can give me a code snippet to start working with, to sort of kick
me
in the right direction, I'll figure the rest out.
Many thanks
/Karl