comint-previous-matching-input-string-position
comint-previous-matching-input-string-position is a compiled Lisp function in `comint.el
'.
(comint-previous-matching-input-string-position REGEXP ARG &optional START)
Return the index matching REGEXP ARG places along the input ring.
Moves relative to START, or `comint-input-ring-index'.