improve category regex