I have a string and I want to extract matches from it using regex. The string is as follows:
you and he and she and me
And my regex is (so far):
(\w+) and (\w+)
What I want is it should give this result:
(you, he), (he, she), (she, me)
but current result just include 2 matches, which are
(you, he), (she, me)
How to achieve this?