Hyperlink Destination Characters
Hi,
I'm looking for a way to eliminate hyperlink destination characters (the blue colons) either with Javascript or via grep. The weird thing is that with the following grep:
(([[:punct:]]|[[:alnum:]]|[[:space:]])*)
…if you select the character on its own and search the selection, it says it's not found (as you'd hope). But if you search a paragraph using that grep, it skips over and includes it (even for a replace). This has to be a bug. So I could loop through each character invoking an InDesign-style find on that selection, but that's a bit of a pain and would be super slow.
ID's Javascript doesn't include POSIX support, so that's no good, and when I copy-paste the character in question into ID, it gives me
~l
which seems like it ought to work but is never found. This also seems like a probable bug.
Any ideas, anyone? Alternatively, the problem I'm trying to solve is: I have a chapter heading (say) with a hyperlink text destination (usually) at the start of it. I duplicate this using JS, and the text destination is also duplicated, and I want to kill it in the duplicated, but not the original version. Hope that makes sense - it's for a table of contents.
Cheers,
Alex
