The .* here is like .* in path globbing from a Unix shell, in that it's the literal . followed by anything up to the path separator. The way to interpret this is: if we see a "" or a "...", we will transition to globbing mode. We first translate "" to "[^/]", "..." to "." and "." to ".". At this point, any remaining regexes are left in, as is. So the regex above will find files that start with one or more of \w, followed by a literal ".", followed by any characters until the end of the filename.
... View more