def _perform_rex_transformation(self, value, transformations):
        for rex, trf in transformations:
            match = rex.search(value)
            if match:
                value = trf % match.groups()
        return value
dataset/ETHPy150Open formencode/formencode/formencode/national.py/InternationalPhoneNumber._perform_rex_transformation/original