Community Patterns

Community Library Entry

1

Regular Expression
Created·2021-07-14 07:27
Flavor·PCRE2 (PHP)

/
(?'YMDyear'[\d]{4})?\/(?'YMDmonth'[\d]{2})\/(?'YMDday'[\d]{2})|(?'DMYday'[\d]{2})\/(?'DMYmonth'[\d]{2})\/(?'DMYyear'[\d]{4})
/
sigm
Open regex in editor

Description

Search for a date in a text.

Submitted by globdug