Implement filter for glob-style pattern