Is it just me or isn't .*? a bit redundant? I mean * is satisfied matching 0 times or more, so why make it optional? Also, as far as I know filenames need to have something before the extenstion, so .+ might be more accurate. Just my take on it.
#Moo