How can I handle these different HTML chunks in Perl?
- by kkchaitu
I need to write a single regular expression with the three possible cases.
case1
<td width="100%" align="left" bgcolor="#001E5A"><font face="Arial" size="2" color="#FFFFFF"><font size="1"><b>[Punjabi Music]</font></b> <a id="listlinks" target="_scurl" href="http://www.apnaradio.com/">Apna Radio Broadcast Live 24x7: Indian - Pakistani - Punjabi - Bhangra and Hindi Music !!</a>
</font></td>
<td nowrap align="center" width="10" bgcolor="#001E5A"> </td>
case2
<td width="100%" align="left" bgcolor="#001E32"><font face="Arial" size="2" color="#FFFFFF"><font size="1"><b>[jazz]</font></b> <a id="listlinks" target="_scurl" href="http://www.dinnerjazzexcursion.com">Dinner Jazz Excursion</a>
<br>
<font size="1"><a id="chatstuff" href="aim:goim?screenname=NA">[ AIM ]</a> <font color="#FF0000">Now Playing:</font> Ken Peplowski - Indian Summer</font></font></td>
<td nowrap align="center" width="10" bgcolor="#001E32"> </td>
case 3
<td width="100%" align="left" bgcolor="#001E5A"><font face="Arial" size="2" color="#FFFFFF"><font size="1"><b>[World Bollywood Hindi]</font></b> <a id="listlinks" target="_scurl" href="http://www.bollywoodmusicradio.com/">Bollywood Music Radio :: Indian Music :: Request your Hindi Songs</a>
<br>
<font size="1"><font color="#FF0000">Now Playing:</font> Bollywood Music Radio - Fear (2007) - Tu Hai Ishq @ 13:46</font></font></td>
<td nowrap align="center" width="10" bgcolor="#001E5A"> </td>