A characterization of regular averaging operators and its consequences