. "The municipal legislative body may provide in any zoning regulation for the restoration, reconstruction, extension, or substitution of nonconforming uses upon such terms and conditions as may be set forth in the zoning regulations." . . . .