Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Python

r"
^([0-9]+)(\/)([0-9]+)(\/)([0-9][0-9]) ([0-9]+):([0-9][0-9]) (a|p).\s(m).
"

Description

If you need to identify only the timestamp of a message, use this REGEX coode.

Submitted by anonymous - 4 years ago