Alpha-galactosidase. Removes both branched alpha-1,3-linked galactose residues of blood group B antigens and linear alpha-1,3-linked galactose structures. Hydrolysis of terminal, non-reducing branched (1->3)-alpha-D-galactosidic residues, producing free D-galactose. Hydrolysis of terminal, non-reducing linear (1->3)-alpha-D-galactosidic residues, producing free D-galactose. Hydrolysis of terminal, non-reducing alpha-D-galactose residues in alpha-D-galactosides, including galactose oligosaccharides, galactomannans and galactolipids. Belongs to the glycosyl hydrolase 110 family. B subfamily.