3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $filename = 'Arrow.S010E050.480p.HDTV.x264-ChameE.mkv'; // file name get form iPad // express to get series name, season and episode number if (preg_match("[.]s(?<season>\\d{1,4})e(?<episodes>\\d{1,3}([e-]\\d{1,3})+)[.]", $filename, $n)) { print_r($n); }
based on 1TjNI
Output for 5.6.0 - 7.3.0rc4
Warning: preg_match(): Unknown modifier '(' in /in/h2k5O on line 4