GNU Info

Info Node: (emacs-lisp-intro.info)Counting Words

(emacs-lisp-intro.info)Counting Words


Next: Words in a defun Prev: Regexp Search Up: Top
Enter node , (file) or (file)node

Counting: 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-region
Use a regexp, but find a problem.
recursive-count-words
Start with case of no words in region.
Counting Exercise

automatically generated by info2www version 1.2.2.9