Function: image-file-name-regexp

image-file-name-regexp is an autoloaded and byte-compiled function defined in image-file.el.gz.

Signature

(image-file-name-regexp)

Documentation

Return a regular expression matching image-file filenames.

Aliases

org-image-file-name-regexp (obsolete since 9.0)

Source Code

;; Defined in /usr/src/emacs/lisp/image-file.el.gz
;;;###autoload
(defun image-file-name-regexp ()
  "Return a regular expression matching image-file filenames."
  (let ((exts-regexp
	 (and image-file-name-extensions
	      (concat "\\."
		      (regexp-opt
                       (append (mapcar #'upcase image-file-name-extensions)
			       image-file-name-extensions
                               (mapcar #'upcase
				       image-converter-file-name-extensions)
                               image-converter-file-name-extensions)
		       t)
		      "\\'"))))
    (mapconcat
     #'identity
     (delq nil
           (nconc (list exts-regexp
                        (car (rassq 'imagemagick image-type-file-name-regexps)))
		  (ensure-list image-file-name-regexps)))
     "\\|")))