import re


def format_phone_number(raw_phone_number):
    """
    Our data set has phone numbers that look like "(919) 666-6666"
    The Yelp API takes a phone number in the format "+19196666666"
    """
    numbers_only = re.sub(r'\D', '', raw_phone_number)
    if len(numbers_only) > 10:
        numbers_only = numbers_only[0:10]

    return "+1" + numbers_only