I think this is probably easy but I don't have the time to learn how to do it.
In a html file, I have a certain class of paragraph, let´s say:
<p class="footnote"></p>
The "p" tag is always followed by numbers, which increase by one in every instance. Let's say the first number is "43". I want the series of numbers to start from 1, so I need to substract 42 from all paragraphs.
For example, I would want to go from:
<p class="footnote">43. Lorem</p>
<p class="footnote">44. Ipsum</p>.
<p class="footnote">45. Dolor</p>.
to
<p class="footnote">1. Lorem</p>
<p class="footnote">2. Ipsum</p>.
<p class="footnote">3. Dolor</p>.
How can I do it?