<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def rank(self):
 """ Returns an ``int`` of the team's rank at the time the game was played. """

        rank = re.findall(r'\d+', self._rank)
        if len(rank) == 0:
            return None
        return rank[0]