import re


def join_digits(string):
    """ Join all digits in a string together to make a number. Negative numbers are supported. """
    number = re.sub('[^-\\d+]', '', string)
    return int(number) if number else None