Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
Python

r"
\b([01]?[0-9]|2[0-3]):([0-5][0-9])(?::([0-9][0-9]))?\b
"
gm

Description

Extract time from text

Submitted by anonymous - 3 years ago (Last modified 3 years ago)