Semi-regular rings and semi-regular ideals