org-heading-keyword-maybe-regexp-format

org-heading-keyword-maybe-regexp-format is a variable defined in `org.el'.
Its value is
"^\\(\\*+\\)\\(?: +%s\\)?\\(?: +\\(.*?\\)\\)?[ 	]*$"

  • This variable may be risky if used as a file-local variable.

Documentation:
Printf format for a regexp matching a headline, possibly with some keyword.
This regexp can match any headline with the specified keyword, or
without a keyword. The keyword isn't in any group by default,
but the stars and the body are.