<?php $ar = ['filename.en_us.srt', 'filename.en_uk.srt', 'filename.fr_fr.srt']; foreach($ar as $a) { preg_match('/\.([^\.]*)\.srt$/', $a, $matches); echo $matches[1]."\n"; }
You have javascript disabled. You will not be able to edit any code.