import re


def extract_price(tag):
    """ Returns an integer from a string representing a monetary value """
    e_price_str = tag.contents[0]
    e_price_str = e_price_str.split(',')[0]  # cut off any cents in the price
    e_price = int(re.sub("\D", '', e_price_str))
    return e_price