preg_replace('#якорь|\[special\].*?\[/special\](*SKIP)(*F)#s', 'TXT', $str);
$ar = array('Parameter #0 [ $operationName ]', 'Parameter #0 [ $operationName ]', 'Parameter #0 [ $operationName ]');
preg_match_all('/(?<=\[).+?(?=\])/' , implode($ar), $matches);
print_r($matches[0]);
^(.{10,})/(.+)/$
^(.+)/([^/]{10,})/$
index out of range [0] with length 0
for _, fullName := range fullNames {
result := r.FindAllStringSubmatch(fullName, -1)
if len(result) == 0 {
continue
}