Function: hywiki-org-get-heading-match-regexp

hywiki-org-get-heading-match-regexp is a byte-compiled function defined in hywiki.el.

Signature

(hywiki-org-get-heading-match-regexp TITLE)

Documentation

Return a regexp that matches to the TITLE and start of an Org heading.

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hywiki.el
(defun hywiki-org-get-heading-match-regexp (title)
  "Return a regexp that matches to the TITLE and start of an Org heading."
  ;; org-complex-heading-regexp + custom todo keywords + specific title
  (format (concat "^\\(\\*+[ \t]+\\)"
                  ;; optional todo keyword
                  "\\(?:"
                  (if (hywiki-in-page-p)
                      hywiki--org-todo-regexp
                    org-todo-regexp)
                  "\\)?"
                  ;; optional priority
                  "\\(?:[ \t]*\\(\\[#.\\]\\)\\)?"
                  ;; title and optional stats
                  "\\(?:[ \t]*\\(%s\\)\\)")
          ;; exact title
          (regexp-quote title)))