public static function renderStatic(array $arguments, \Closure $renderChildrenClosure, RenderingContextInterface $renderingContext)
{
if (empty($arguments['subject'])) {
$subject = $renderChildrenClosure();
} else {
$subject = $arguments['subject'];
}
$value = preg_replace($arguments['pattern'], $arguments['replacement'], $subject);
return static::renderChildrenWithVariableOrReturnInputStatic($value, $arguments['as'], $renderingContext, $renderChildrenClosure);
}