allows disableregex default value to be set