I have the following regex
and it works.
Now I want to replace for every occurrence of the found string the same string but prepended with a string of choice, say "<!-- title -->\n"
So, if the string found by the above regex was
it should been replaced by the string
In other words, is there in the calibre regexes something like the expression "$&" in Perl?
Code:
<h(\d).*?>.*?</h\1>Now I want to replace for every occurrence of the found string the same string but prepended with a string of choice, say "<!-- title -->\n"
So, if the string found by the above regex was
Code:
<h1 class="veryhigh">lorem ipsum</h1>Code:
<!-- title -->\n<h1 class="veryhigh">lorem ipsum</h1>





