code: public boolean isMatch(InputReader reader) throws IOException
      {
          int rc = match(reader);
          return (rc == 1 && reader.read() == -1);
      }
docs: Return true if input matches the regex.
  @param reader
  @return
  @throws IOException
  @throws SyntaxErrorException