in reply to Basic regular expressions

1. Is looking for at least 1 asterisk (the * is escaped here)

2. Is looking for a forward slash at the end of the $path string i.e. anchored by the $

3. Correct, the . metacharacter is escaped, so remove .gz from the end of the string