Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Created·2023-02-14 18:11
Flavor·PCRE2 (PHP)

/
([0-9]|[0-1][0-2])\:?([0-5][0-9])? ([A|P]M) to ([0-9]|[0-1][0-2])\:?([0-5][0-9])? ([A|P]M)
/
gm
Open regex in editor

Description

This is a re that can validate time with date with AM and PM

Submitted by anonymous