function genContentClass() {
global $APPLICATION;
$DirExp = trim(str_replace('/', '-', strtolower(preg_replace('/[^A-Za-z\/]+/', '', $APPLICATION->GetCurDir()))), '-');
return (!empty($DirExp)) ? ' site-' . $DirExp : '';
}
<div id="content" class="<?= genContentClass() ?>">
(href|src)="(https?:\/\/)?([^\/]+)?([\w\d\/]+)(?<=\/)([\w\d]+)\.(jpg|jpeg|png|gif)"
(href|src)="(https?:\/\/)?([^\/]+)?([\w\d\/]+)(?<=\/)([\w\d]+)\.(jpg|jpeg|png|gif)"
Не было раздела Notepad++_file
Добавил, заполнил разделами и значениями из .txt и заработало.