Endo-beta-galactosidase capable of releasing both the blood group A trisaccharide (A-Tri; GalNAcalpha1-->3(Fucalpha1-->2)Gal) and B trisaccharide (B-Tri; Galalpha1-->3(Fucalpha1-->2)Gal) glycotopes from blood group A- and B-containing glycoconjugates, respectively. Endohydrolysis of (1->4)-beta-D-galactosidic linkages in blood group A and B substances. Belongs to the glycosyl hydrolase 98 family.