Finding the unknown text 'x' chars to the right of the known
Posted: Fri Dec 04, 2009 3:02 pm
I'm trying to get the share price of certain stocks out of Yahoo. When you do a search (which is easy), I'm then loading it into a text box and filtering the web page to just get the line with the share details in, all good so far.
Here's an extract:
Now, I want to extract the share price, so I need to get the value 8 characters to the right of the words 'Share Price'. Anyone know how to do that?
Here's an extract:
Code: Select all
<span style="color:#333333;">Share Price:</span> 62.35</td><td><span style="color:#333333;">Bid:</span>