i have this regex /^\/unique\/product\/type\/?(?=\/|$)/i and i want to get only valid text from this regex, in this case, the code must return only 'unique', 'product' and 'type'. Write in javascript The response should be in all capital letters.
user