Regular Expressions 101

Community Patterns

Community Library Entry

2

Regular Expression
Created·2015-11-25 20:47
Flavor·PCRE (Legacy)

/
\b(?P<date>(?P<day>3[0-1]|[0-2]?[\d])(?P<separator>\/|\-|\.)(?P<month>1[0-2]|[0-1]?[\d])\3(?P<year>[\d]{4}|[\d]{2}))
/
g
Open regex in editor

Description

Search for three different types of dates in spanish format

Submitted by Agustín Bouillet