Skip to content

Tag: python-3.x

Best way to find the last number in a String

I have images with variable names, the only consistant feature/thing is that the image number is located at the end of the name, just before the extension. For example: “im1.png”, “Image 02.tif”, “My3rdImage_3.jpg” , “Whatever_17_MoreWhatever-31.tiff”. What woul…