Function: gnus-globalify-regexp

gnus-globalify-regexp is a byte-compiled function defined in gnus-util.el.gz.

Signature

(gnus-globalify-regexp RE)

Documentation

Return a regexp that matches a whole line, if RE matches a part of it.

Source Code

;; Defined in /usr/src/emacs/lisp/gnus/gnus-util.el.gz
(defun gnus-globalify-regexp (re)
  "Return a regexp that matches a whole line, if RE matches a part of it."
  (concat (unless (string-match "^\\^" re) "^.*")
	  re
	  (unless (string-match "\\$$" re) ".*$")))