Hydrolyzes pNP-beta-galactoside. Also possesses activity against galactose, and to a lesser extent towards melibiose and lactose. Hydrolysis of terminal non-reducing beta-D-galactose residues in beta-D-galactosides. Belongs to the glycosyl hydrolase 42 family.