<?php $test=["abcd/abcd_.mp3"]; foreach ($test as $t) echo preg_replace("/abcd([^_.])/", "defg" . "\${1}", $t);
You have javascript disabled. You will not be able to edit any code.