I've got a string:
"My cow gives milk, my cow always gives milk".
I want to extract the text between "cow"
and "milk"
, which will give me
["gives", "always gives"].
I've tried string.match('cow (.*?) milk')
, but it gives me
["cow gives milk", "gives"].