<?php preg_quote(string $str, ?string $delimiter = null): string
<?php $cwd = rtrim($cwd, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR; return preg_replace('/^' . preg_quote($cwd, '/') . '/', '', $file); } }
<?php protected static function prefixOpeningDirective($found, $template) { $foundEscaped = preg_quote($found, '/'); $prefix = '<!--[if BLOCK]><![endif]-->';
<?php $prefix = '<!--[if BLOCK]><![endif]-->'; $prefixEscaped = preg_quote($prefix); $foundWithPrefix = addcslashes($prefix.$found, '$\\');
<?php $found = rtrim($found); $foundEscaped = preg_quote($found, '/'); $suffix = '<!--[if ENDBLOCK]><![endif]-->';
<?php $suffix = '<!--[if ENDBLOCK]><![endif]-->'; $suffixEscaped = preg_quote($suffix); $foundWithSuffix = addcslashes($found.$suffix, '$\\');