0から1000までに含まれる0をカウントする
0〜1000に含まれる0をカウントする - http://rubikitch.com/に移転しました
(with-temp-buffer (loop for i from 0 to 1000 do (insert (format "%d" i))) (count-matches "0" (point-min) (point-max))) ; => 193 (#o301, #xc1)
0〜1000に含まれる0をカウントする - http://rubikitch.com/に移転しました
(with-temp-buffer (loop for i from 0 to 1000 do (insert (format "%d" i))) (count-matches "0" (point-min) (point-max))) ; => 193 (#o301, #xc1)