3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $name = "Avalone, Doris B. - 09-01-2014 - a00005213.exe"; $searcharr = preg_match("/^\w+/", $name, $matches); print_r($matches);
based on lvXIh
Output for 4.3.0 - 7.1.0
Array ( [0] => Avalone )