kkapsner
Super Moderator
Oh Mann - das kann man ja nicht mit ansehen:
PHP:
$dir = "./voices/dir_7/";
if (is_dir($dir)) {
if ($dh = opendir($dir)) {
while (($file = readdir($dh)) !== false) {
if (if_file($dir . $file))
{
echo $file . "<br>" .
preg_replace('/^.+_(\d+)-\d+(\.[a-z]+)$/i', "$1$2", $file) . "<br><br>";
}
}
closedir($dh);
}
}