Removing link with button
- I'm trying to remove a link with a button image from an HTML file.
This is the clip I've got so far but it doesn't appear to select the
text correctly before deleting it:
^!Find <A HREF="http://www.whsmith.co.uk TIS
^!Find </A> TIS
The links look like this, but are slightly different each time, where
the ISBN number is unique to each link:
I want all of this to disappear but to not affect anything else in
the same line. The links are inside <TH>, which are sometimes closed
but often not, ie: there isn't always a </TH>
I can't use ^!Select HTMLTag because it only selects the first tag,
ignoring the button inside the link and the </A> - hence the attempt
to find the first part of the link, then the </A> before selecting
back to the start of the link. But I'm left with the </A>. I tried
using ^!MoveCursor but that seemed to make it worse - no number would
make it select from the end of the </A>.
> to find the first part of the link, then the </A> before selecting^!Jump SELECT_END should do the trick - after your search for </A>.
> back to the start of the link. But I'm left with the </A>. I tried
> using ^!MoveCursor but that seemed to make it worse
BTW: it is safer to surround your searchstrings with quotes,
especially if a quote appears in the strng itself...
^!Find "<A HREF="http://www.whsmith.co.uk" TIS
- --- In firstname.lastname@example.org, "Hugo Paulissen"
>Yes - that did the trick. Thanks.
> ^!Jump SELECT_END should do the trick - after your search for </A>.