I have several 1.000 URLs and want to extract some values from the URL parameters. Here some examples from the DB:
["//xxx.com/se/something?SE_{ifmobile:MB}{ifnotmobile:DT}_A_B_C_D_E_F_G_H"]
["//www.xxx.com/se/car?p_color_car=White?SE_{ifmobile:MB}{ifnotmobile:DT}_A_B_C_D_E_F_G_H"]
I want to extract the SE | A | B | C | D | E | F | G | H
I have tried it with REGEXP_EXTRACT
REGEXP_EXTRACT_ALL(Url,r'(?:\?|&)(?:([^_]+)_(?:[^&]*))') as Country
The problem is since I have two '?' the outcome returns SE for the first url, and p for the second url. How can I solve this in one regexp so that I don't get the p but actual SE for the second url as well.