zap-to-char

zap-to-char is an interactive compiled Lisp function in `simple.el'.

It is bound to M-z.

(zap-to-char ARG CHAR)

Kill up to and including ARGth occurrence of CHAR.
Case is ignored if `case-fold-search' is non-nil in the current buffer.
Goes backward if ARG is negative; error if CHAR not found.