Regeneration of the filtering material or filter elements outside the filter for liquid or gaseous fluids