Results 1 to 4 of 4

Thread: Please help with string manipulation (parsing)..

Threaded View

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    May 2002
    Posts
    628

    Please help with string manipulation (parsing)..

    Code:
    <td valign=top width=2%><b>&middot; </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>&middot; </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>&middot; </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?
    Last edited by n00bie; Aug 4th, 2002 at 08:59 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width