code: public ParameterBuilder matching(String regex) {
          Validate.notNull(regex, "regex is required");
          this.pattern = Pattern.compile(regex);
          return this;
      }
docs: Sets a regular expression that must match for parameter values to be considered as valid.