Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
Python

r"
(\d\d{0,1}){1}(:\d\d{0,1}){0,1}(\sa.m|\sp.m){0,1}
"

Description

get time in string 33:20 a.m

Submitted by Hoang Phuong - Gia Lai - 9 years ago