import re


def strpmoney(value):
    """
    Take a currency string `value` and return the
    atomic integer format (e.g. "9.97" => 997)
    """
    if value is None:
        return 0
    value = re.sub(r'[^0-9\.]', '', value)
    if '.' in value:
        whole, part = value.split('.', 1)
        whole = int(whole)
        part = int(part)
        return part + (whole * 100)
    else:
        return int(value) * 100