code: @Deprecated
    public static Parser<Void> pattern(final Pattern pattern, final String name) {
      return new Parser<Void>() {
        @Override boolean apply(final ParseContext ctxt) {
          int at = ctxt.at;
          CharSequence src = ctxt.characters();
          int matchLength = pattern.match(src, at, src.length());
          if (matchLength < 0) {
            ctxt.missing(name);
            return false;
          }
          ctxt.next(matchLength);
          ctxt.result = null;
          return true;
        }
        @Override public String toString() {
          return name;
        }
      };
    }
docs: A scanner that scans the input for an occurrence of a string pattern.
  
  @param pattern the pattern object.
  @param name the name of what's expected logically. Is used in error message.
  @return the Parser object.
  @deprecated Use {@code pattern.toScanner(name)}.