Regular Expressions 101

Library entries

Timestamp recognizer, extracts hours minutes seconds

Vote

0

Regular Expression
python

"
(?<![:0-9])(?P<hours>0?[0-9]|1[0-9]|2[0-3]):(?P<minutes>60|[0-5][0-9])(?::)?(?P<seconds>60|[0-5][0-9])?(?![:0-9]+\b)
"

Description

Loading markdown...
Submitted by Paul Reiber - 5 years ago