public function rule_to_digits_and_single_spaces($a) { $a = preg_replace("/[^\\d ]/", '', $a); return $this->rule_strip_extra_space($a); }