13 Counting via Repetition and Regexps ************************************** Repetition and regular expression searches are powerful tools that you often use when you write code in Emacs Lisp. This chapter illustrates the use of regular expression searches through the construction of word count commands using ‘while’ loops and recursion.
· Why Count Words · count-words-example Use a regexp, but find a problem. · recursive-count-words Start with case of no words in region. · Counting Exercise