comint-previous-matching-input-string

comint-previous-matching-input-string is a compiled Lisp function in `comint.el'.

(comint-previous-matching-input-string REGEXP ARG)

Return the string matching REGEXP ARG places along the input ring.
Moves relative to `comint-input-ring-index'.