02-08-2007, 04:07 PM
The only thing I might add is a $ on the end of the regexp to make sure that there is nothing after .txt.gz. Thus it would exclude ".txt.gz copy" for example.
You also probably want to escape the "." so that it won't match any character. I think it would be "\." instead of "." .
You also probably want to escape the "." so that it won't match any character. I think it would be "\." instead of "." .