I am playing around with python and I am trying to figure out a way to search a text file for a specific word within a time range. The file has time stamps, however since the file is a text file everything is a string.
Text file contains the below:
17:14:26.442 words words words words words
17:15:32.533 words words words words words
17:16:26.442 words words words words words
17:17:32.533 words words words words words
17:18:26.442 words words words words words
17:19:32.533 words words words words words
17:20:26.442 words words words words words
17:21:32.533 words words words words words
What I want to do is search for a word in a time frame and get back only that line that has word between 17:17:32.533 and 17:20:26.442. However, since its a text document and everything is a string I cannot use the range option. Does anyone have some suggestions on how I can do this?