Function: projectile-replace--word-boundary-regexp

projectile-replace--word-boundary-regexp is a byte-compiled function defined in projectile.el.

Signature

(projectile-replace--word-boundary-regexp REGEXP)

Documentation

Fence REGEXP with word boundaries so it only matches whole words.

The pattern is shy-grouped and wrapped in \</\>, mirroring what ripgrep's --word-regexp does, so the elisp scan and the ripgrep fast-path agree on what counts as a whole-word match.

Source Code

;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defun projectile-replace--word-boundary-regexp (regexp)
  "Fence REGEXP with word boundaries so it only matches whole words.
The pattern is shy-grouped and wrapped in `\\<'/`\\>', mirroring what
ripgrep's `--word-regexp' does, so the elisp scan and the ripgrep
fast-path agree on what counts as a whole-word match."
  (concat "\\<\\(?:" regexp "\\)\\>"))