'Extracts the ticket ID from a URL.'

def get_ticket_id_from_url(self, ticket_url):

    r = re.compile('(\\d).*')
    numbers_in_url = r.findall(ticket_url)
    if (not numbers_in_url):
        raise Exception('No    digits    in    request_url')
    else:
        return numbers_in_url[0]
