Any of several enzymes capable of cleaving the phosphodiester bonds between the nucleotide subunits of nucleic acids.