eZ\Publish\Core\FieldType\RichText\Normalizer\DocumentTypeDefinition::getExpression PHP Method

getExpression() private method

Computes and returns regular expression pattern for matching and replacement.
private getExpression ( ) : string
return string
    private function getExpression()
    {
        if ($this->expression === null) {
            $this->expression = '/(<\\?xml.*\\?>)?([ \\t\\n\\r]*)(<' . preg_quote($this->documentElement, '/') . '.*xmlns="' . preg_quote($this->namespace, '/') . '".*>)/is';
        }
        return $this->expression;
    }