Given this query string:
?cgan=1&product_cats=mens-jeans,shirts&product_tags=fall,classic-style&attr_color=charcoal,brown&attr_size=large,x-small&cnep=0
How can I extract values only from these parameter types 'product_cat, product_tag, attr_color, attr_size' , returning only 'mens-jeans,shirts,fall,classic-style,charcoal,brown,large,x-small ?
I tried to use a non-capture group for parameter types and a capture group only for values but returning them.
(?:product_cats=|product_tags=|attr\w+=)(\w|,|-)+
source share