This question already has an answer here:
Shouldn't it be
.*\.ext to match files ending with extension "ext", from the aspect of regular expression?
I have tried
ls *.sh, which can show all the shell script file. But if I change to
ls .*\.ext, it doesn't match the shell script file though.