import re


def applyRegexps(text, listRegExp):
    """ Applies successively many regexps to a text"""
    # apply all the rules in the ruleset
    for element in listRegExp:
        left = element['left']
        right = element['right']
        r = re.compile(left)
        text = r.sub(right, text)
    return text