simplify regexp on highlight function