Bug fix for #4643: Regex object needs to be reset between calls in tooltip.js