Community Patterns

Community Library Entry

1

Regular Expression
Created·2021-09-03 13:01
Flavor·PCRE2 (PHP)

/
^(\d{2})\/(\d{2})\/(\d{4}) (\d{2}):(\d{2})$
/
Open regex in editor

Description

this regex check if the date is in the format d/m/Y H:i , it will not check the number of days in month

Submitted by Kristian lentino