How can I match next line in string by preg_match
? I have tried, the code is below.
$str = "== heading ==
strint1...
strint2...
strint3...
strint4...";
preg_match_all("/==\sheading\s==((?:.|[
])+)/i",$str,$res);
Most of the time its working fine, But sometime its not working( the page is just loading only ).