use RE to test filename endings.