I would like to match words starting with "ho" in a text. Matching words length should be maximum 5 and it should exclude hou in hour.
I currently struggle in adding length limits and excluding hou in hour.
My code is here:
demotext="what I have to do is to love you forever. however, we only have one hour left to be together. whatttttttttt. hot. hottest."
m = re.findall(r'\bwh\w+|\bho\w+',demotext)
print(m)
Can anyone tell me how to do it?