Dideved - 6:16 pm on May 6, 2013 (gmt 0)
I agree, DrDoc, that whoever originally wrote that pattern probably intended to match single path segments, in which case you're right that [^/]* is correct and .* is not.
The issue that's the topic of this thread is that a few people advocate *always* avoiding .*, even when it's logically the correct pattern, and instead they often suggest [^.]*, even when matching paths and filenames, despite that a path can legitimately contain periods.
Originally, they rationalized this by saying that avoiding .* was a big optimization. But benchmarks revealed that it's actually a micro-optimization at best. Lately, at least one person has switched to a different rationalization and is now saying that periods don't belong in the URL at all.