substr($match[0], strlen(rtrim($match[0], '.,;:)'))), $text, ) ?? ''; $text = preg_replace('/(?)\s+/u', '', $text) ?? ''; $text = self::tidyTitle(trim(preg_replace('/\s+/u', ' ', $text) ?? '')); if (preg_match('/^(.*?(?i:(? 0) { $cut = mb_substr($cut, 0, $space); } return rtrim($cut, " \t,;:.-").'…'; } }