I'm tryin to extract multiple IPv4 addresses from a single field that are separated by ","
Example string: "badips":["123.456.789.12","123.456.789.13","123.456.789.14"]
Expected output of field badips with values 123.456.789.12 123.456.789.13 123.456.789.14
^[^\[\n]*\["(?P<badips>\d+\.\d+\.\d+\.\d+)
gets me the first IP
^[^\[\n]*\["(?P<badips>.*?)\"]
gets me 123.456.789.12","123.456.789.13","123.456.789.14 with the "," in between.
I'm trying to come up with something dynamic because there will be atleast 1 IP in the field, but there could be more. ] will always follow the last IP
I'm new to regex and any help will be greatly appreciated. I have a regex cheat sheet and have been working at this all day, just can't seem to get it