Function: editorconfig-fnmatch--match-num
editorconfig-fnmatch--match-num is a byte-compiled function defined in
editorconfig-fnmatch.el.gz.
Signature
(editorconfig-fnmatch--match-num REGEXP STRING)
Documentation
Return how many times REGEXP is found in STRING.
Source Code
;; Defined in /usr/src/emacs/lisp/editorconfig-fnmatch.el.gz
(defun editorconfig-fnmatch--match-num (regexp string)
"Return how many times REGEXP is found in STRING."
(let ((num 0))
;; START arg does not work as expected in this case
(while (string-match regexp string)
(setq num (1+ num)
string (substring string (match-end 0))))
num))