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