protected function clean($rid) { if (!preg_match('/^\\s*#?(\\d+:\\d+)\\s*$/', $rid, $matches)) { throw new ValidationException($rid, __CLASS__); } return "#{$matches[1]}"; }