def __init__(self, s):
self.txt = s<EOL>self._family = self._extract_family(s)<EOL>self.regex = re.compile(fnmatch.translate(s))<EOL>
Create a glob rule.

        Args:
            s (str): Glob pattern. Eg 'foo.*', '*.beta'.