Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
ECMAScript (JavaScript)

/
\D\D\D (?:\d\,|\d\d\,) \d\d\d\d\, (?:\d\:\d\d|\d\d\:\d\d)\D\D
/
gi

Description

matches a timestamp that is in the format of Aug 14, 2024, 10:12 AM or month shortcode followed by day, year, time in 12 hours

Submitted by astro - 3 months ago