Hai
from csv file ,i want to check some string is there or not with some time stamp
This finds a date with a format of dd/dd/dd (dd stands for one or more digits) in a file:
Code:
import re
patt = r'\d+/\d+/\d+'
f = open('data_file')
for line in f:
if re.search(patt, line):
f.close()
break
print line
# 295,343,83,25,FC,3,1,0,C,12/06/2007,D342,0,0,530019
Comment