how to increase search character limit? now in example is 3276 characters but in 3275 its works ok
ini_set("pcre.backtrack_limit", "23001337");
ini_set("pcre.recursion_limit", "23001337");
$str = "<div>";
for ($x=1;$x<=327;$x++){
$str .= "1234567890";
}
$str .="123456";
$str .= "</div>";
$w1 = "/<div>((.*?|\n)*)<\/div>/";
preg_match_all($w1, $str, $matches);
print_r($matches);