No, the leading ".*" is needed to delete from the beginning of the string all the way to the end of the pattern, which is what that line tries to do. In reality, many of those lines are really using "gensub" or "sub" rather than gsub, though, which allows this to make a little more sense.

Cheers