org-in-regexp

org-in-regexp is a compiled Lisp function in `org.el'.

(org-in-regexp RE &optional NLINES VISUALLY)

Check if point is inside a match of regexp.
Normally only the current line is checked, but you can include NLINES extra
lines both before and after point into the search.
If VISUALLY is set, require that the cursor is not after the match but
really on, so that the block visually is on the match.