docs: public static boolean matchRegexOrEquals(final String inputSelector, final String item) {
          //see if inputSelector is wrapped in '/' chars
          String testregex = inputSelector;
          if (testregex.length()>=2 && testregex.indexOf('/') == 0 && testregex.lastIndexOf('/') == testregex.length() - 1) {
              testregex = inputSelector.substring(1, inputSelector.length() - 1);
              return item.matches(testregex.trim());
          }
          boolean match = false;
          try {
              match = item.matches(inputSelector.trim());
          } catch (PatternSyntaxException e) {
  
          }
          return match || inputSelector.trim().equals(item);
      }