code: public static Condition matchesCondition(String key, boolean keyRegex, String value, boolean valueRegex) {
          return new MatchesCondition(key, keyRegex, value, valueRegex);
      }
docs: Create a single match condition
  
  @param key        key name or regular expression
  @param keyRegex   true if the key is a regular expression key match, false for an equals match
  @param value      value value string
  @param valueRegex true if the value is a regular expression match, false for an equals match
  
  @return new condition