Best solution in Python for exactly regex
k_reichert (0)

II have a file that I'm listing through to search on a key word in a checklist however in using regex I'm getting everything in that is matching in that list. Example: I'm seaching for timestamp however not only it is finding timestamp I'm also getting back datatimestamp. Any thoughts on how to sructure this. Currently I have the following:

for line1 in list:
for item in elements:
title = item['title']
#checks if element is in list
if re.search((title), line1):

You are viewing a single comment. View All