### ImageMagick version

7.1.1-23

### Operating system

Linux

### Operating system, version and so on

ubuntu 22.04

### Description

when we use filename with range input eg.
 montage font_[0-9].gif  -geometry 16x16+1+1  tile_0.gif 
works fine, however, any number bigger than 9 will result in just the last digit before the bracket ] being counted. eg

 montage font_[0-59].gif  -geometry 16x16+1+1  tile_0.gif (Assume exist 60 images font_0.gif .. font_59.gif we would only still see 9 images concat together, if 

 montage font_[0-52].gif  -geometry 16x16+1+1  tile_0.gif (2 images concat together)

### Steps to Reproduce

create say 14 images font_0.gif to font_14.gif

run
 montage font_[0-14].gif  -geometry 16x16+1+1  tile_0.gif 

result is 4 images concat together

### Images

_No response_
montage concat image range 
This is a GitHub Issue
repo:ImageMagick
owner:ImageMagick
Title : montage concat image range 
Issue date:

--- start body ---
### ImageMagick version

7.1.1-23

### Operating system

Linux

### Operating system, version and so on

ubuntu 22.04

### Description

when we use filename with range input eg.
 montage font_[0-9].gif  -geometry 16x16+1+1  tile_0.gif 
works fine, however, any number bigger than 9 will result in just the last digit before the bracket ] being counted. eg

 montage font_[0-59].gif  -geometry 16x16+1+1  tile_0.gif (Assume exist 60 images font_0.gif .. font_59.gif we would only still see 9 images concat together, if 

 montage font_[0-52].gif  -geometry 16x16+1+1  tile_0.gif (2 images concat together)

### Steps to Reproduce

create say 14 images font_0.gif to font_14.gif

run
 montage font_[0-14].gif  -geometry 16x16+1+1  tile_0.gif 

result is 4 images concat together

### Images

_No response_
--- end body ---
