org-between-regexps-p

org-between-regexps-p is a compiled Lisp function in `org.el'.

(org-between-regexps-p START-RE END-RE &optional LIM-UP LIM-DOWN)

Non-nil when point is between matches of START-RE and END-RE.

Also return a non-nil value when point is on one of the matches.

Optional arguments LIM-UP and LIM-DOWN bound the search; they are
buffer positions. Default values are the positions of headlines
surrounding the point.

The functions returns a cons cell whose car (resp. cdr) is the
position before START-RE (resp. after END-RE).