Logo Search packages:      
Sourcecode: aap version File versions

def aap-1.090::aapre::MatchObject::start (   self,
  g = 0 
)

start([group=0]) -> int or None

Return the index of the start of the substring matched by
group; group defaults to zero (meaning the whole matched
substring). Return -1 if group exists but did not contribute
to the match.

Definition at line 539 of file aapre.py.

00539                           :
        """start([group=0]) -> int or None

        Return the index of the start of the substring matched by
        group; group defaults to zero (meaning the whole matched
        substring). Return -1 if group exists but did not contribute
        to the match.

        """
        if type(g) == type(''):
            try:
                g = self.re.groupindex[g]
            except (KeyError, TypeError):
                raise IndexError, 'group %s is undefined' % `g`
        return self.regs[g][0]

    def end(self, g = 0):


Generated by  Doxygen 1.6.0   Back to index