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