Count occurrences of a substring: Difference between revisions
Content added Content deleted
mNo edit summary |
mNo edit summary |
||
Line 1,543: | Line 1,543: | ||
=={{header|Emacs Lisp}}== |
=={{header|Emacs Lisp}}== |
||
Two Emacs Lisp solutions are shown below |
Two Emacs Lisp solutions are shown below |
||
<syntaxhighlight lang=" |
<syntaxhighlight lang="lisp"> |
||
;; version 1, which takes advantage of the how-many function, |
;; version 1, which takes advantage of the how-many function, |
||
;; which runs only in a buffer |
;; which runs only in a buffer |