I have a Pandas series
Explanation
a "how are you doing today where is she going"
b "do you like blueberry ice cream does not make sure "
c "this works but you know that the translation is on"
I want to extract the 2 words before and after the string "you"
for example, I want it to be something like
Explanation Explanation Extracted
a "how are you doing today where is she going" "how are you doing today"
b "do you like blueberry ice cream does not make sure " do you like blueberry ice
c "this works but you know that the translation is on" "work but you know that"
This regex expression gives me the the two words before and after "you", but doesn't include "you" itself
(?P<before>(?:\w+\W+){,2})you\W+(?P<after>(?:\w+\W+){,2})
How do I change it so I can have "you" included