def get_default_replacement_func(placeholders):
    """
    Get a default function for use by perform_placeholder_replacements()
    :param dict placeholders: a dict of placeholders for the replacements
    :returns: a function that seach the placeholder dict for a replacement
    :rtype: function
    """
    return lambda m: placeholders.get(m.group(1), m.group(0))