> 2. delete all the text that doesn't match the search regex string.
this is far more complex task as you need to write a regex that
matches all the rest.
What i suggest is far from being elegant but still have a look at this:
1) manually delete all text from the beginning of file till first <td
valign = top>
2) manually delete all text after the last <td valign=top>(.*?)</td>
3) cyclically delete all text between two neighbouring <td
valign=top>(.*?)</td>
until you can find nothing....
Here is the regex i suggest for it with comments below it (view in
CourierNew font or the like).
(<td valign=top>(.*?)</td>)(.*?)<td valign=top>
\ / ^
\_________$1__________/ |
|
to be deleted
and replace it with
$1<td valign=top>
Thus actually you will delete the text that was matched by the second
(.*?) in our regular expression
Please report if it worked.
--
Regards,
Eugeny