3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $filename = "[Study] - Walton, Charles E 01-01-2012.txt"; $date = preg_match("/(.*)(\d+-\d+-\d+)(.*)/", $filename); echo $date;
based on WF5m3
Output for 4.3.0 - 7.1.0
1