<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def update_text(self, token, match):
 """Update text from results of regex match"""

        if isinstance(self.text, MatchGroup):
            self.text = self.text.get_group_value(token, match)