i want to replace the last occurence of <li>
to add class inside it, it should look like below. <li class="last">
<li><span>Vislink Acquires Gigawave for US$6 Million </span></li>
<li><span>Newegg Offers $25 7-inch DTV</span></li>
<li><span>The Hope of Broadcasters </span></li>
<li><span>ICANN Approves Custom Domain Extensions </span></li>
<li><span>Sciences Ending U.S. Sales </span></li>
<li><span>LightSquared Proposes Plan to </span></li>
<li><span>Wimbledon Gets 3D upgrade </span></li>
<li><span>The Hope of Broadcasters </span></li>
<li><span>LightSquared Proposes Plan to </span></li>
<li class="last"><span> Newegg Offers $25 7-inch DTV </span></li>
i have stored the above html in a string variable. what could i do to achieve this.