code: def group_re(self):
          ''' Return a regexp pattern with named groups '''
          out = ''
          for token, data in self.tokens():
              if   token == 'TXT':  out += re.escape(data)
              elif token == 'VAR':  out += '(?P<%s>%s)' % (data[1], data[0])
              elif token == 'ANON': out += '(?:%s)' % data
          return ouf group_re(self):
          ''' Return a regexp pattern with named groups '''
          out = ''
          for token, data in self.tokens():
              if   token == 'TXT':  out += re.escape(data)
              elif token == 'VAR':  out += '(?P<%s>%s)' % (data[1], data[0])
              elif token == 'ANON': out += '(?:%s)' % data
          return out
docs: Return a regexp pattern with named groups