Cleaves beta-linked terminal galactosyl residues from gangliosides, glycoproteins, and glycosaminoglycans. Hydrolysis of terminal non-reducing beta-D-galactose residues in beta-D-galactosides. Optimum pH is 4.5. Belongs to the glycosyl hydrolase 35 family.