def METHOD_NAME(self):
    if self.isEOF():
        return None
    if self.follows('+'):
        content = '+'
        self.index += 1
    elif self.follows('?'):
        content = '?'
        self.index += 1
    elif self.follows('*'):
        content = '*'
        self.index += 1
    elif self.follows(
            '{'
    ):  # try matching otherwise return None and restore the state
        i = self.index
        self.index += 1
        digs1 = self.scanDecimalDigs()
        # if no minimal number of digs provided then return no quantifier
        if not digs1:
            self.index = i
            return None
        # scan char limit if provided
        if self.follows(','):
            self.index += 1
            digs2 = self.scanDecimalDigs()
        else:
            digs2 = ''
        # must be valid!
        if not self.follows('}'):
            self.index = i
            return None
        else:
            self.expect_character('}')
            content = int(digs1), int(digs2) if digs2 else None
    else:
        return None
    return content