I'm trying to parse the source code from a website that 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 I want to do if possible is to just grep out all the lines which contains channelId
, not sure if it's possible?