PHP: Get all lines containing specific text -


i'm trying parse source code website goes like

   <html>     ...     ...     ...     <div class="menu_body">     <a href="url" onclick="_gaq.push([parameters]);location.href=this.href+'?channelid=287&date='+dateofmonth;return false;"> <img src="img"></a>     <a href="url"><img src="img"></a>     <a href="url"><img src="img"></a>     </div>     ...     ...     <div class="menu_body">     <a href="url"><img src="img></a>     <a href="url"><img src="img"></a>     <a href="url"><img src="img"></a>     </div>     ...     ...     ...     </html> 

what want if possible grep out lines contains channelid, not sure if it's possible?

sounds want sort of html parser

http://simplehtmldom.sourceforge.net/    <-- php http://htmlparser.sourceforge.net/         <--- java 

/** @see robust , mature html parser php */


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -