preg_last_error_msg

PHP 8
preg_last_error_msg - Returns the error message of the last PCRE regex execution
Manual
Code Examples

Example #1 preg_last_error_msg example

Result: Backtrack limit exhausted
<?php
preg_match('/(?:\D+|<\d+>)*[!?]/', 'foobar foobar foobar');
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
PHP Version:


Function preg_last_error_msg:

Regular Expressions (Perl-Compatible) Functions

Most used PHP functions