There's no incrementing counter function in Sigil's PCRE regex engine. It has to capture the number from the text it matches before it can be inserted into any replace expression. I don't think regex is going to help you here.
You may need to use something like the regex-function feature of calibre's editor to create a custom python routine to create the numbers to add to matched strings.
|