I have three files in a folder - stage-utah, stage1-utah, stage2-utah. I use glob to get it expanded to the list. But with the regular expression stage[12]*-utah, I was expecting it will be expanded to all the files in the dir, as * matches to zero or more occurrences. But it expands to only stage1-utah and stage2-utah.
What is wrong in my expression?
>> stagedir = glob.glob("./stage*")
>> stagedir
['./stage1-utah', './stage2-utah', './stage-utah']
>> stagedir = glob.glob("./stage[12]*")
>> stagedir
['./stage1-utah', './stage2-utah']