code: @GwtIncompatible("java.util.regex.Pattern")
    public void matches(Pattern regex) {
      if (!regex.matcher(actual()).matches()) {
        failWithActual("expected to match", regex);
      }
    }
docs: Fails if the string does not match the given regex.