Giving that I have this link https://website.com/files/2019/08/2/1-screenshot-1-1.png
And that I want to generate a list of links, with a start and end row, like [1-2] and [3-4]
For example :
https://website.com/files/2019/08/2/1-screenshot-1-3.png
https://website.com/files/2019/08/2/1-screenshot-1-4.png
https://website.com/files/2019/08/2/1-screenshot-2-3.png
https://website.com/files/2019/08/2/1-screenshot-2-4.png
etc.
How should I do?