In a directory I have filenames like 123X1.jpg, 23X1.jpg, 23X2.jpg, 4123X1.jpg. I need the glob pattern to only get listed files starting with a required string.
For example:
'23X' -> 23X1.jpg, 23X2.jpg
'123X' -> 123X1.jpg
Last part part of the pattern is always an X. The first one is a number.