Function: dired-isolated-string-re

dired-isolated-string-re is a byte-compiled function defined in dired-aux.el.gz.

Signature

(dired-isolated-string-re STRING)

Documentation

Return a regexp to match STRING isolated.

Isolated means that STRING is surrounded by spaces or at the beginning/end of a string followed/prefixed with an space. The regexp capture the preceding blank, STRING and the following blank as the groups 1, 2 and 3 respectively.

Source Code

;; Defined in /usr/src/emacs/lisp/dired-aux.el.gz
(defun dired-isolated-string-re (string)
  "Return a regexp to match STRING isolated.
Isolated means that STRING is surrounded by spaces or at the beginning/end
of a string followed/prefixed with an space.
The regexp capture the preceding blank, STRING and the following blank as
the groups 1, 2 and 3 respectively."
  (format "\\(?1:\\`\\|[ \t]\\)\\(?2:%s\\)\\(?3:[ \t]\\|\\'\\)" string))