def nice_integer(number):
    """ Format a number like '999,999,999'
    """
    string = str(number)
    pattern = compile('^(\\d+)(\\d\\d\\d)\\b')
    while pattern.match(string):
        string = pattern.sub('\\1,\\2', string)
    return string
