import locale
import re


def parse_price(price):
    """
    Convert string price to numbers
    """
    if not price:
        return 0
    price = price.replace(',', '')
    return locale.atoi(re.sub('[^0-9,]', "", price))