Adding '.' and '-' to regex for filename