Logo Search packages:      
Sourcecode: aap version File versions

def aap-1.090::aapre::RegexObject::sub (   self,
  repl,
  string,
  count = 0 
)

sub(repl, string[, count=0]) -> string

Return the string obtained by replacing the leftmost
non-overlapping occurrences of the compiled pattern in string
by the replacement repl. If the pattern isn't found, string is
returned unchanged.

Identical to the sub() function, using the compiled pattern.

Definition at line 344 of file aapre.py.

00344                                         :
        """sub(repl, string[, count=0]) -> string

        Return the string obtained by replacing the leftmost
        non-overlapping occurrences of the compiled pattern in string
        by the replacement repl. If the pattern isn't found, string is
        returned unchanged.

        Identical to the sub() function, using the compiled pattern.

        """
        return self.subn(repl, string, count)[0]

    def subn(self, repl, source, count=0):


Generated by  Doxygen 1.6.0   Back to index