I have the following code in Python:
import re
string = "what are you doing you i just said hello guys"
regexValue = re.compile(r'(\s\w\w\w\s)')
mo = regexValue.findall(string)
My goal is to find any 3-letter word, but for some reason, I seem to get only "eat" and not "you" on my list. I realized that this could be because the space between the two overlaps, and since the space is already in use, it cannot be part of "you." So, how do I find only three words from a string like this?
source
share