I need to search for a particular word in a log file For example, 255 1237 92 D++
I want to scan through each line whether the word "D++" is present. I have tried the approach below but failed.
if re.search(r"D\+\+", Line) is not None:
print ("Success")
Thanks