findstr regular expression

December 14, 2010 at 02:05:07
Specs: Windows 2000
I have a text file, each line contains a time in like 01:15:28, 13:45:09 etc.

I want to use findstr to find out all those lines between the period (inclusive) 09:00:00 to 09:14:59. Can anyone please suggest how the findstr command be written?

Thanks.


See More: findstr regular expression

Report •


#1
December 14, 2010 at 02:47:34
This seemed to work for me for 09:00:00 to 09:14:59.

findstr "09:0[0-9]:[0-5][0-9] 09:1[0-4]:[0-5][0-9]"

Note that it is actually two search strings.


Report •

#2
December 14, 2010 at 17:17:29
Thanks very much.

Report •
Related Solutions


Ask Question