docs: public int expect(String pattern) throws MalformedPatternException, Exception {
          logger.trace("Searching for '" + pattern + "' in the reader stream");
          return expect(pattern, null);
      }