Function: comint-how-many-region

comint-how-many-region is a byte-compiled function defined in comint.el.gz.

Signature

(comint-how-many-region REGEXP BEG END)

Documentation

Return number of matches for REGEXP from BEG to END.

Source Code

;; Defined in /usr/src/emacs/lisp/comint.el.gz
(defun comint-how-many-region (regexp beg end)
  "Return number of matches for REGEXP from BEG to END."
  (let ((count 0))
    (save-excursion
      (save-match-data
	(goto-char beg)
	(while (re-search-forward regexp end t)
	  (setq count (1+ count)))))
    count))