Regenerative adsorption process in two or more beds, one for adsorption, the other for regeneration