code: def _glob_match(self, pattern, string):
          
          # regex flags Multi-line, Unicode, Locale
          return bool(re.match(fnmatch.translate(pattern), string,
                               re.M | re.U | re.L))
docs: Match given string, by escaping regex characters