Regular Expressions 101

Library entries

Parse date between 1000 and 2012 in format(YYYY/MM/DD HH:MM)

Vote

0

Regular Expression
pcre

/
\s+|^((1[0-9]{1,3})|(20[0-1][0-2])|(200[0-9]))\/((0[0-9])|[0-9]|[1][0-2])\/(([0-2][0-9])|(30)) (([0-1][0-9])|([2][0-4])):([0-6][0-9])
/
gmi

Description

Loading markdown...
Submitted by Andy - 6 years ago