i have a very long string, what i am, trying to accomplish is delete a section in that string from the <tr> parent tag of the string to his closing tag </tr>. (hope i am clear enough).
So when i call The method RemoveSection with the text "Search Integration"
Html before
<tr>
<td class=\"SectionHeaderHolder\" colspan=\"4\">
<p class=\"SectionHeader\">Header XX<span class=\"help\">Help</span></p>
</td>
</tr>
<tr>
<td class=\"SectionHeaderHolder\" colspan=\"4\">
<p class=\"SectionHeader\">Search Integration<span class=\"help\">Help</span></p>
</td>
</tr>
<tr>
<td class=\"SectionHeaderHolder\" colspan=\"4\">
<p class=\"SectionHeader\">Header YY<span class=\"help\">Help</span></p>
</td>
</tr>
- The string that Remove function gets will be under
<p class=\"SectionHeader\"> - There will be only one section with that string- so the first occurrence should be handled by the remove function.
Html after
<tr>
<td class=\"SectionHeaderHolder\" colspan=\"4\">
<p class=\"SectionHeader\">Header XX<span class=\"help\">Help</span></p>
</td>
</tr>
<tr>
<td class=\"SectionHeaderHolder\" colspan=\"4\">
<p class=\"SectionHeader\">Header YY<span class=\"help\">Help</span></p>
</td>
</tr>