updated the regular expression for categories