View Single Post
Old 11-06-2020, 07:27 AM   #2
thiago.eec
Wizard
thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.
 
Posts: 1,228
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
Looks like you want to reset your notes numbering in every new chapter. Is that it?

Looking at your code, I can see that your identifiers already work like this, so it would be easy to achieve it using regex:

Find:
Code:
bodyftn(\d*?)">\d*?<
Replace:
Code:
bodyftn\1">\1<
The code you posted is from you endnotes. Now, you also have to change the notes in every chapter, so the numbering will match. The logic is the same, but I can't tell you the exact find/replace terms because you didn't post the code.
thiago.eec is offline   Reply With Quote