def replace_each(text, items, count=None, strip=False):
    '''
    Like ``replace``, where each occurrence in ``items`` is a 2-tuple of 
    ``(old, new)`` pair.
    '''
    for a,b in items:
        text = replace(text, a, b, count=count, strip=strip)
    return text