Scattering theory with both regular and singular perturbations