- preg_match: documentation ( source)
<?php
$array = array(
'.',
'..',
'_BACKUP',
'_global.xml',
'_icon',
'_images',
'_languages',
'_settings.xml',
'_sound',
'_video',
'_xml',
'fischerwirt.xls',
'panorama',
'thumbs'
);
foreach($array as $a) {
preg_match('.xls', $a);
}