code: def find_and_replace_userids(self, text):
          '''Finds occurrences of Slack userids and attempts to replace them with
             display names.
  
          Args:
              text (string): The message text
          Returns:
              string: The message text with userids replaced.
          '''
  
          match = True
          pattern = re.compile('<@([A-Z0-9]{9})>')
          while match:
              match = pattern.search(text)
              if match:
                  name = self.get_user_display_name(match.group(1))
                  text = re.sub(re.compile(match.group(0)), '@' + name, text)
  
          return texf find_and_replace_userids(self, text):
          '''Finds occurrences of Slack userids and attempts to replace them with
             display names.
  
          Args:
              text (string): The message text
          Returns:
              string: The message text with userids replaced.
          '''
  
          match = True
          pattern = re.compile('<@([A-Z0-9]{9})>')
          while match:
              match = pattern.search(text)
              if match:
                  name = self.get_user_display_name(match.group(1))
                  text = re.sub(re.compile(match.group(0)), '@' + name, text)
  
          return text
docs: Finds occurrences of Slack userids and attempts to replace them with
             display names.
  
          Args:
              text (string): The message text
          Returns:
              string: The message text with userids replaced.