suppress warnings if disableregex has not been checked