Validator for str
maany opened this issue · comments
Extend the existing str() yamale validator with following constraints:
str(contains=['a-z','A-Z','0-9','-',' '], regex="regex_to_match");
If contains is not specified, do nothing to validate that constraint. If it is specified, however, ensure that the string contains only the character groups specified.