We show how martingale techniques (both old and new) can be used to obtain otherwise hard-to-get information for the moments and distributions of waiting times for patterns in independent or Markov sequences. In particular, we show how these methods provide moments and distribution approximations for certain scan statistics, including about variable length scan statistics. Each general problem that is considered is also illustrated with a concrete example confirming the computational tractability of the method.