Added ability to add regular expression to validate option value