[Solved] python Regular expression [closed]
I think this is what you’re after: file = open(“demo.txt”,”r”) text = file.read() def find(info,text): match = re.findall(info + “+\w+\d+”,text) if match: print(match) else: print(“Not found!”) # This is how you call the function find(“whatever info is supposed to be”,text) 3 solved python Regular expression [closed]