I have a string:
s = r'"url" : "a", "meta": "b", "url" : "c"'
What I want is to capture the substring url: ... up to the ,, so the expected output is a list:
[r'"url" : "a"', r'"url" : "b"']
I am using:
re.findall(r'("url"):(.*),', s)
but all it does is to return the entire string. Is there something i am doing wrong?