Guest User

Untitled

a guest
Dec 9th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.12 KB | None | 0 0
  1. $date = "1934-12-12";
  2.  
  3. print preg_match('#^((19|20)?[0-9]{2})([- /.])(0?[1-9]|1[012])\1(0?[1-9]|[12][0-9]|3[01])*$#', $date);
Add Comment
Please, Sign In to add comment