Making histRegex a global, for more efficiency