How can I design a regular expression that will capture all the characters between 2 strings? Specifically, from this big string:
Studies have shown that...[^title=Fish consumption and incidence of stroke: a meta-analysis of cohort studies]... Another experiment demonstrated that... [^title=The second title]
I want to extract all the characters between [^title= and ], that is, Fish consumption and incidence of stroke: a meta-analysis of cohort studies and The second title.
I think I will have to use re.findall(), and that I can start with this: re.findall(r'\[([^]]*)\]', big_string), which will give me all the matches between the square brackets [ ], but I'm not sure how to extend it.