Function: ispell--make-filename-or-URL-re

ispell--make-filename-or-URL-re is a byte-compiled function defined in ispell.el.gz.

Signature

(ispell--make-filename-or-URL-re)

Documentation

Construct a regexp to match some file names or URLs or email addresses.

The expression is crafted to match as great a variety of these objects as practicable, without too many false matches happening.

Source Code

;; Defined in /usr/src/emacs/lisp/textmodes/ispell.el.gz
(defun ispell--make-filename-or-URL-re ()
  "Construct a regexp to match some file names or URLs or email addresses.
The expression is crafted to match as great a variety of these
objects as practicable, without too many false matches happening."
  (concat ;"\\(--+\\|_+\\|"
          "\\(/\\w\\|\\("
          (ispell--make-\\w-expression "-_")
          "+[.:@]\\)\\)"
          (ispell--make-\\w-expression "-_")
          "*\\([.:/@]+"
          (ispell--make-\\w-expression "-_~=?&")
          "+\\)+"
          ;"\\)"
          ))