Regular Expressions 101

Community Patterns

1...34567...901

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