A direct spectrophotometric assay for d-alanine carboxypeptidases and for the esterase activity of β-lactamases