search-forward- A simple function to search for the next occurrence of a string. It also accepts an optional argument COUNTthat looks for the next COUNTconsecutive occurrences.
, , .
: elisp.
:
(defun search-forward-count (string count)
(interactive "sString: \nnCount: ")
(re-search-forward string nil nil count))
:
(defun search-forward-prefix (count string)
(interactive "p\nsString: ")
(re-search-forward string nil nil count))