(I have edited this post for clarity)
I have a terribly formatted text document.. Luckily, though terribly formatted, it's reliably terribly formatted and so regex has saved me days worth of work.
I'm now at the point that I want to provide bookmarks for the table of contents to link to I've managed to replace each section title with
<a name="#insertlinkhere">Assembly</a> Content under Assembly title. <a name="#insertlinkhere">Warranty</a> Content under Warranty title. <a name="#insertlinkhere">Contact</a> ...
And the like.. each occurrence of insertlinkhere is literally insertlinkhere.
Now what I want to do is replace each `insertlinkhere`\ with an 'a' + iteration-count, so the first three would say
<a name="#a1">Assembly</a> ... <a name="#a2">Warranty</a> ... <a name="#a3">Contact</a> ... <a name="#a48">Assemblage</a> ... <a name="#a49">Garantie</a> ...
I have googled for this, but I'm not sure my terminology is correct or possibly, notepad++ is not capable of this without a specific addon. Perhaps someone could suggest a program that is.