Variable: org-priority-regexp
org-priority-regexp is a variable defined in org.el.gz.
Value
".*?\\(\\[#\\([A-Z0-9]+\\)\\] ?\\)"
Documentation
Regular expression matching the priority indicator.
A priority indicator can be e.g. [#A] or [#1].
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
;;;; Priorities
(defvar org-priority-regexp ".*?\\(\\[#\\([A-Z0-9]+\\)\\] ?\\)"
"Regular expression matching the priority indicator.
A priority indicator can be e.g. [#A] or [#1].
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\".")