(?!...)
, то можно попробовать заменить -(\d{1,3})-
на -(7([0-689]\d?|7[0-689]?)?|3([02-9]\d?|1[0-46-9]?)?|[0-24-68-9]\d{0,2})-
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
}