I am trying to use regex while finding substring with incomplete words in string
str1 = "a) John is working in Microsoft"
str2 = "a) John is wor"
Expected answer : "a) John is working"
I tried simple regex : re.findall(r"(\S*" + str2+ r"\S*)", str1)
But its giving error Unbalanced Parenthesis
Can someone help?