import re


def price_to_number(price_string):
    """Convert price to integer."""
    price_digits = []
    price_as_string = '0'

    if(len(price_string)):
        for character in price_string:
            number = re.search('[0-9]', character)
            if number and number.group(0):
                price_digits.append(number.group(0))

        price_as_string = ''.join(price_digits)

    return int(price_as_string)