Variable: copyright-years-regexp

copyright-years-regexp is a customizable variable defined in copyright.el.gz.

Value

"\\(\\s *\\)\\([1-9]\\([-0-9, ';/*%#\n	–]\\|\\s<\\|\\s>\\)*[0-9]+\\)"

Documentation

Match additional copyright notice years.

The second \( \) construct must match the years.

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/copyright.el.gz
;; The worst that can happen is a malicious regexp that overflows in
;; the regexp matcher, a minor nuisance.  It's a pain to be always
;; prompted if you want to put this in a dir-locals.el.
;;;###autoload(put 'copyright-names-regexp 'safe-local-variable 'stringp)

(defcustom copyright-years-regexp
  "\\(\\s *\\)\\([1-9]\\([-0-9, ';/*%#\n\t–]\\|\\s<\\|\\s>\\)*[0-9]+\\)"
  "Match additional copyright notice years.
The second \\( \\) construct must match the years."
  :type 'regexp)