Find a sequence that matches a regular expression in a stream of chars.