The regularity for a class of singular differential equations