fork download
  1. import re
  2.  
  3. lineItems = ["2022-08-15T07:59:00","row1","00:01:00","2022-08-15T08:00:00"]
  4. r = re.compile(r'(\d{2}):(\d{2}):(\d{2})')
  5. print( list(filter(r.fullmatch, lineItems)) )
  6. # => ['00:01:00']
Success #stdin #stdout 0.03s 9576KB
stdin
Standard input is empty
stdout
['00:01:00']