I am looking to find words ending with ing and type them, my current code prints instead of the word.
#match all words ending in ing import re expression = input("please enter an expression: ") print(re.findall(r'\b\w+(ing\b)', expression))
so if we introduce the expression: sharing all the information you are hearing
I would like to print ['sharing', 'hearing'] instead I have ['ing', 'ing'] printed
Is there a quick way to fix this?
source share