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