Variable: org-priority-regexp

org-priority-regexp is a variable defined in org.el.gz.

Value

".*?\\(\\[#\\([A-Z]\\|[0-9]\\|[1-5][0-9]\\|6[0-4]\\)\\] ?\\)"

Documentation

Regular expression matching the priority indicator.

A priority indicator can be e.g. [#A] or [#1]. The value of the priority cookie must be a capital Latin alphabetic character, A through Z, or can be an integer value in the range 0 through 64. This regular expression matches these groups:
0 : the whole match, e.g. "TODO [#A] Hack"
1 : the priority cookie, e.g. "[#A]"
2 : the value of the priority cookie, e.g. "A".

Source Code

;; Defined in /usr/src/emacs/lisp/org/org.el.gz
(defvar org-priority-regexp
  (format ".*?\\(\\[#\\(%s\\)\\] ?\\)" org-priority-value-regexp)
  "Regular expression matching the priority indicator.
A priority indicator can be e.g. [#A] or [#1].
The value of the priority cookie must be a capital Latin
alphabetic character, A through Z, or can be an integer value in
the range 0 through 64.
This regular expression matches these groups:
0 : the whole match, e.g. \"TODO [#A] Hack\"
1 : the priority cookie, e.g. \"[#A]\"
2 : the value of the priority cookie, e.g. \"A\".")