Re: [PHP-DB] [Regular expression] Format string to "DD/MM/YYYY hh:mm"

2006-03-31 Thread Julien Bonastre
Balazs Hegedus ha scritto: $pattern = '[0-3][0-9]/[0|1][0-9]/[1|2][0-9]{3,3}\s[0-2][0-9]:[0-5][0-9]'; I found this: ^([0-1]?\d)|(2[0-8]))\/((0?\d)|(1[0-2])))|(29\/((0?[1,3-9])|(1[0-2])))|(30\/((0?[1,3-9])|(1[0-2])))|(31\/((0?[13578])|(1[0-2]\/((19\d{2})|([2-9]\d{3}))|(29\/0?2\/((

Re: [PHP-DB] [Regular expression] Format string to "DD/MM/YYYY hh:mm"

2006-03-31 Thread Giacomo
Balazs Hegedus ha scritto: I found this: ^([0-1]?\d)|(2[0-8]))\/((0?\d)|(1[0-2])))|(29\/((0?[1,3-9])|(1[0-2])))|(30\/((0?[1,3-9])|(1[0-2])))|(31\/((0?[13578])|(1[0-2]\/((19\d{2})|([2-9]\d{3}))|(29\/0?2\/[2468][048])|([3579][26]))00)|(((19)|([2-9]\d))(([2468]0)|([02468][48])|([1357