Variable: xdg-line-regexp

xdg-line-regexp is a variable defined in xdg.el.gz.

Value

"XDG_\\(?1:\\(?:D\\(?:ESKTOP\\|O\\(?:CUMENTS\\|WNLOAD\\)\\)\\|MUSIC\\|P\\(?:ICTURES\\|UBLICSHARE\\)\\|\\(?:TEMPLATE\\|VIDEO\\)S\\)\\)_DIR=\"\\(?2:\\(?:\\(?:\\$HOME\\)?/\\)\\(?:[^\"]\\|\\\\\"\\)*?\\)\""

Documentation

Regexp matching non-comment lines in xdg-user-dirs config files.

Source Code

;; Defined in /usr/src/emacs/lisp/xdg.el.gz
;; XDG User Directories
;; https://www.freedesktop.org/wiki/Software/xdg-user-dirs/

(defconst xdg-line-regexp
  (eval-when-compile
    (rx "XDG_"
        (group-n 1 (or "DESKTOP" "DOWNLOAD" "TEMPLATES" "PUBLICSHARE"
                       "DOCUMENTS" "MUSIC" "PICTURES" "VIDEOS"))
        "_DIR=\""
        (group-n 2 (or "/" "$HOME/") (*? (or (not (any "\"")) "\\\"")))
        "\""))
  "Regexp matching non-comment lines in `xdg-user-dirs' config files.")