I have document page images named (for example) as follows:
“2020-07-24 07;17;09 - ABCD - 12345-67890 (14 Main St) - 01 [Declaration 1].png” “2020-07-24 07;17;09 - ABCD - 12345-67890 (14 Main St) - 02 [Declaration 2].png” “2020-07-24 07;17;09 - ABCD - 12345-67890 (14 Main St) - 07 [Fire].png” “2020-07-24 07;17;09 - ABCD - 12345-67890 (14 Main St) - 12 [Fungi etc].png”
I want to capture ONLY the page numbers, without preceding zeros (1, 2, 7, 12 in this example). Based on code I saw here, I thought maybe something like this might take care of it:
- 0*\d+.*\.(?:jpe?g|png|tiff?)$(?!(?:0*)\d+)
…but, it did not. Any other suggestions?