Uses dispatch_once to initialize hexRegex.