Advertisement
colmulhall

Untitled

Apr 3rd, 2014
311
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.15 KB | None | 0 0
  1. // For formats like 01/01/2012 or 30-12-11 or 1 2 1985
  2. preg_match( '/([0-9]?[0-9])[\.\-\/ ]?([0-1]?[0-9])[\.\-\/ ]?([0-9]{2,4})/', $string, $matches );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement