Looks for any of the following trac ticket formats in the description field:

            t12345, t 12345, T12345, T 12345, #12345, # 12345, ticket 12345, TICKET 12345

def trac_tickets(self):
        '''
        Looks for any of the following trac ticket formats in the description field:

            t12345, t 12345, T12345, T 12345, #12345, # 12345, ticket 12345, TICKET 12345
        '''
        # ticket_numbers = re.findall(re.compile("([t#]\s?[0-9]{2,})|([t#][0-9]{2,})", re.IGNORECASE), self.description)
        ticket_numbers = re.findall(r"^[tT#]\s?[0-9]+", self.description)
        ticket_numbers += re.findall(r"[tT#][0-9]+", self.description)
        ticket_numbers += re.findall(re.compile("ticket\s?[0-9]+", re.IGNORECASE), self.description)

        # Remove Duplicates
        ticket_numbers = [re.sub('[^0-9]','', t) for t in ticket_numbers]
        return list(set(ticket_numbers))