[eluser]bookworm[/eluser]
very strange...
look, i have data:
Code:
$str = ".....long string....<tag>....very long string....</tag>....long string....";
long string means about 5000-10000 chars.
very long string - about 20000 chars.
Ok.
Than, I want to extract some data:
Code:
$arr = array();
preg_match("/<tag>((.|\\n|\\r)+?)<\\/tag>/", $str, $arr);
If I will execute php cli, or my php file via web site - it's OK!
but if this code inside codeigniers' controller file...
it fails on long strings! when data between <tag> and </tag> is about 15000 chars...
why?
and more!
this:
Code:
preg_match("/<tag>((.|\\n|\\r)+)<\\/tag>/", $str, $arr);
without "?" after "+" will fail even on short strings in codeigniter!
any ideas, guys?