Second last occurence of an integer in a string
Consider "hEY3 a7yY5" as my string, the last integer in this string is 5 and the second last integer is 7.
How do I find index of last second integer in this string? I'm not sure to if I can use rindex() and if so then how.
The index of 7 in the above string is 6.
I can't wrap my head around writing something like stre.rindex(isnumeric())