I have to following string
line = '![[screenshotone.png]] and the next in the same line as ![[screenshottwo.jpg]]'
I want to fetch screenshotone.png and screenshottwo.jpg as two elements of a list from a regex search.
and using
output = re.findall('\[\[(.*)\]\]',line,re.I):
I want to get output as a list ['screenshotone.png','screenshot two.jpg']
but it's choosing ['screenshotone.png]] and the next in the same line as ![[screenshottwo.jpg']
I am not able to understand what changes I got to do in the regex pattern so that the both choices are done twice as expected.