Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
^(?:.*?(\d{1,}\/\d{1,}\/\d{2,})){2}
/
gm

Description

This is a very useful pattern to find Nth occurency of a data in this format dd/mm/yyyy but can be abstracted for other situations

Submitted by Mauro99 - 4 years ago