I want to search dynamically some string contains case insensitive and some string contains special characters like (TM), (R) how to search those strings
with open(logfile) as inf:
for line in inf:
if re.search(string,line,re.IGNORECASE):
# print 'found line',line
I wanted to add re.IGNORECASE,re.escape() are giving error, How to solve it
If i put this into python console…
..i got correct result.