Regular Expressions 101

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 p.m

Submitted by Hoang Phuong - Viet Nam - 9 years ago