I want only the numbers after hyphen and i got it using regex. Later i’m converting the output to integer value. But there are “Thumbs” file in the folders and due to which the bot is stopping at conversion of integer. Could someone help me as how can i skip this “Thumbs” file. Below is the output and error screenshots.
Another option as you are already using Regex is to use the Success property from the match object. With the right regex pattern you would be able to determine if conversion can be done or not