I'm trying to replace the part the text with the same text and some extra, example:
Initial text
<href="../doc/d5807346.pdf" class="document">3.2.1. EXAMPLE</a></div><div style="clear:both;"></div>
After
<href="../doc/d5807346.pdf" class="document" download="3.2.1. EXAMPLE">3.2.1. EXAMPLE</a></div><div style="clear:both;"></div>
I'm using in Notepad++ the following Regex:
- Find: ((?<=class="document">).*?(?=<))
- Replace with: download="\1">\1
End result is not what I'm expecting, note the > between class="document" and download :
<href="../doc/d5807346.pdf" class="document"> download="3.2.1. EXAMPLE">3.2.1. EXAMPLE</a></div><div style="clear:both;"></div>
I'm stuck on trying to figure out how to prevent that.

