preg_last_error

Supported Versions: PHP 5 >= 5.2.0, PHP 7, PHP 8
Returns the error code of the last PCRE regex execution
<?php preg_last_error(): int
<?php     protected function handleRegexError()

    {

        if (! preg_last_error()) {

            return;

        }
<?php             return;

        }



        throw new RegexError(preg_last_error(), $this->view);

    }



    protected function sanitizePhp($text)