My PHP script can fetch content from a div id, but what is the way to filter this fetch data and exclude some of its content which has this div id
<div id="navbar" class="n">content here content here</div> I have tried with this code but its not working
$regex = '#\<div id="navbar"\>(.+?)\<\/div\>#s'; preg_match($regex, $displaybody, $matches); $match = $matches; echo "$match";
To fetch content i am using SIMPLE HTML DOM Parser( http://sourceforge.net/projects/simplehtmldom/files/ ), any idea?