def _p_re(self, regexp, silent = False, swallow = True, group = 0,
              syntax_error = None):
        match = regexp.match(self.input)
        if match is None:
            if silent:
                return None
            else:
                if syntax_error:
                    raise NoMatch(value = syntax_error)
                else:
                    raise NoMatch(value = "No match for r.e. '%s'" % \
                                  regexp.pattern)
        if swallow:
            self.input = self.input[match.end():]
        return match.group(group)

    #######################################################################
    #
This will attempt to match (ie: at the beginning of the string)
dataset/ETHPy150Open scanner/asimap/asimap/parse.py/IMAPClientCommand._p_re