def xlat(self, text): 

    """ Translate text, returns the modified text. """ 

    # Reset substitution counter
    self.count = 0 

    # Process text
    return self._make_regex().sub(self, text)
 Translate text, returns the modified text. 
recipes/Python/81330_Singlepass_Multiple_Replace/recipe-81330.py