code: public boolean isMatch(CharSequence text)
      {
          try
          {
              if (text.length() == 0)
              {
                  return acceptEmpty;
              }
              InputReader reader = Input.getInstance(text);
              return isMatch(reader);
          }
          catch (IOException ex)
          {
              throw new IllegalArgumentException("can't happen");
          }
      }
docs: Return true if text matches the regex
  @param text
  @return
  @throws IOException