Please help with string manipulation (parsing)..
Code:
<td valign=top width=2%><b>· </b></td><td valign=top width=100%><font face=arial size=-1><b><a onclick='return popup("pp121")' href="/?room=Asian%20Markets::1600382635">Asian Markets</a></b><br>discuss the latest market activity.</font></td><script>sc(15,5,0)</script></tr><tr><td>
</td><td valign=top width=2%><b>· </b></td><td valign=top width=100%><font face=arial size=-1><b><a onclick='return popup("pp200")' href="/?room=Biotechnology::1600326508">Biotechnology</a></b><br>Discuss the latest research and advances in this field.</font></td><script>sc(1,1,0)</script></tr><tr><td>
</td><td valign=top width=2%><b>· </b></td><td valign=top width=100%><font face=arial size=-1><b><a onclick='return popup("pp212")' href="/?room=Bond%20Market::1603088415">Bond Market</a></b><br>Come here to chat live about the bond market!</font></td><script>sc(2,1,0)</script></tr><tr><td>
</td>
There are many of these im a html source.. and theres dozens of these sequences in the source.. listing a link with a <script> tag
beside it. how can i create a function to check the value of the 1st number in each <script>sc(x,y,z)</script> (x in this case) in
the order it was seen in the html source?
for example, lets say i wanted to check the value of the 3rd item in the source (in this case, the last)..
Check(3) would return the value of 2, as "<script>sc(2,1,0)</script>" shows 2 as the first number in the 3rd time in the source.
anyone know?