In my script I have strings like
G024_2006_08.jpg. From these strings I need to extract the last consecutive digits via Applescript. So in my example strings I would need to retrieve the sequences
08 (the latter preferrably with the leading zero).
Is there any way to do this with an Applescript?
Edit: The strings could also look like this:
G014_1998_AB.jpg etc. (in these cases the script should always retrieve
1998). So I am really looking for the last digit sequence and cannot rely on the position of these digits, as I cannot predict the positions.