maybe it\'s too late for me and I am tired, but I can\'t handle a simple regex situation with variable.
var maxLength = \'12\'; var regexForValidation = new RegEx