preg_match(): Compilation failed: regular expression too large at
offset 0
The regular expression is 34,745 bytes long.
<?php
$regExp = 'huge regexp with 34,745 bytes';
echo '<pre>strlen($r egExp) = ', strlen($regExp) , "\n";
echo preg_match($reg Exp, 'sudokusweb.com ');
echo '</pre>';
?>
This error shows in Fedora Core 5 - PHP 5.4.1
The same code works in a shared host running PHP 4.3.11:
The code including the regexp can be downloaded from:
Regards, Clodoaldo Pinto
offset 0
The regular expression is 34,745 bytes long.
<?php
$regExp = 'huge regexp with 34,745 bytes';
echo '<pre>strlen($r egExp) = ', strlen($regExp) , "\n";
echo preg_match($reg Exp, 'sudokusweb.com ');
echo '</pre>';
?>
This error shows in Fedora Core 5 - PHP 5.4.1
The same code works in a shared host running PHP 4.3.11:
The code including the regexp can be downloaded from:
Regards, Clodoaldo Pinto
Comment