3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str='175.160.166.8 - - [15/May/2013:22:07:55 +0800] "GET /downfile/975-2013.05.15-20.00.mp3 HTTP/1.1" 206 622360 "http://fm.jybox.net/" "Mozilla/5.0 (Linux; U; Android 4.0.3; zh-cn; Lenovo P700 Build/IML74K) AppleWebKit/533.1 (KHTML, like Gecko) Mobile Safari/533.1"'; preg_match_all('%\/([^\/]+)\.mp3%', $str, $r); print_r($r); print$r[1][0];
Output for 4.3.0 - 7.1.0
Array ( [0] => Array ( [0] => /975-2013.05.15-20.00.mp3 ) [1] => Array ( [0] => 975-2013.05.15-20.00 ) ) 975-2013.05.15-20.00