Nov-30-2021, 06:21 PM
(Nov-30-2021, 06:15 PM)Gribouillis Wrote: I suggest this ersatzThanks but I cannot use this syntax as I'm using Micropython. Anyhow, I need to list the groups as in my prior post.
>>> {m.group(1): m.group(2) for m in re.finditer(r'([a-z]+)\=([^=&\n]*)', request)} {'q': '0.9\r', 'ssid': 'my_ssid', 'password': 'my_pass', 'token': '', 'ip': '192.168.1.222', 'gw': '192.168.1.1', 'sbnet': '255.255.255.0', 'dns': '8.8.8.8'}