12 lines
206 B
Python
12 lines
206 B
Python
import re
|
|
|
|
|
|
def extract_minutes(date):
|
|
regex = "^([0-9]|1[0-9]|2[0-3]):([0-5][0-9])$"
|
|
out = re.search(regex, date)
|
|
|
|
if out is None:
|
|
return '<NONE>'
|
|
else:
|
|
return out.group(2)
|