code: public boolean satisfy(String str) {
  
          int state = 0;
          for (String nregex : negative) {
              if (Pattern.matches(nregex, str)) {
                  return false;
              }
          }
  
          int count = 0;
          for (String pregex : positive) {
              if (Pattern.matches(pregex, str)) {
                  count++;
              }
          }
          if (count == 0) {
              return false;
          } else {
              return true;
          }
  
      }
docs: 判断输入字符串是否符合正则规则
  @param str 输入的字符串
  @return 输入字符串是否符合正则规则