in reply to Basic regular expressions
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