Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE2 (PHP >=7.3)

/
^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])$
/
gm

Description

Validación para fechas en formato ISO 8601 como 2024-12-13

Submitted by Pablo - a month ago (Last modified a month ago)