For example, given such a string:
I like bla blab blah chocolate I like bla blob bla cheese
I'd like to find all the strings that starts with "I like" then followed by some text and the value.
My problem is that it detects it but .* takes everything until the end returning then one match instead of two.
In [37]: s = 'I like bla blab blah chocolate I like bla blob bla cheese'
In [38]: p = re.compile(r'(I like) .* (\w+)', re.IGNORECASE)
In [39]: p.findall(s)
Out[39]: [('I like', 'cheese')]
I am expecting:
[('I like', 'chocolate'), ('I like', 'cheese')]