php preg_match


p r e g_m a t c h('/(19[5-9][0-9]|20[0-9][0-9])[\/-](0[1-9]|1[0-2])[\/-](0[1-9]|1[0-9]|2[0-9]|3[01])/','2011/12/30',$match);
p r e g_m a t c h('/(0[1-9]|1[0-9]|2[0-9]|3[01])[\/-](0[1-9]|1[0-2])[\/-](19[5-9][0-9]|20[0-9][0-9])/','30/12/2011',$match);
p r e g_m a t c h('/(0[1-9]|1[0-2])[\/-](0[1-9]|1[0-9]|2[0-9]|3[01])[\/-](19[5-9][0-9]|20[0-9][0-9])/','12/30/2011',$match);
p r e g_m a t c h('/(19[5-9][0-9]|20[0-9][0-9])[\/-](0[1-9]|1[0-2])[\/-](0[1-9]|1[0-9]|2[0-9]|3[01])/','2011-12-30',$match);
p r e g_m a t c h('/(0[1-9]|1[0-9]|2[0-9]|3[01])[\/-](0[1-9]|1[0-2])[\/-](19[5-9][0-9]|20[0-9][0-9])/','30-12-2011',$match);
p r e g_m a t c h('/(0[1-9]|1[0-2])[\/-](0[1-9]|1[0-9]|2[0-9]|3[01])[\/-](19[5-9][0-9]|20[0-9][0-9])/','12-30-2011',$match);

About abunajiyah
A Programmer

Comments are closed.

%d bloggers like this: