Hydrolysis of terminal non-reducing beta-D-galactose residues in beta-D-galactosides. Late in the ABE (acetone, butanol, and ethanol) fermentation and subject to glucose repression. Belongs to the glycosyl hydrolase 2 family.