Community Patterns

Community Library Entry

1

Regular Expression
Created·2014-09-24 21:46
Flavor·PCRE (Legacy)

/
(\d{2})(\d{2})(\d{2})
/
Open regex in editor

Description

I'm new to regular expressions and I've been searching high and low for this really simple date conversion from YYMMDD to DD/MM/YY e.g. 140923 to 23/09/14. Maybe I just didn't search hard enough, but here goes:

Search/original string:

(\d{4})(\d{2})(\d{2})

Replace string

$3/$2/$1

Submitted by Nike Begbaaji