in source/python/Utilities.py [0:0]
def validate_config_input(inputKey, regex, lb, ub):
inputType = type(inputKey)
if inputType == int:
#skip length check and just match the pattern
return re.match(regex,inputKey) is not None
elif inputType== str:
if len(inputKey) <= lb or len(inputKey) > ub:
return False
# Match returns none if pattern not found
else:
return "unknown input type"
return re.match(regex, inputKey) is not None