(self, pattern, replacement)
:param pattern: a pattern string or compiled regular expression object
            describing the text to replace.
        :param replacement: the substitution text.
:param pattern: a pattern string or compiled regular expression object
            describing the text to replace.
        :param replacement: the substitution text.
: param pattern : a pattern string or compiled regular expression object describing the text to replace . : param replacement : the substitution text .
def __init__(self, pattern, replacement):
        """
        :param pattern: a pattern string or compiled regular expression object
            describing the text to replace.
        :param replacement: the substitution text.
        """

        self.pattern = rcompile(pattern)
        self.replacement = replacement
def __init__ ( self , pattern , replacement ) : self . pattern = rcompile ( pattern ) self . replacement = replacement