Let the games begin!!
I know how <I> would do this - use offset( to find the words 'left:'
'top:' 'width:' 'height:' and then read char by char until I hit a
p. Then I would have a start and end char to add to a line.
'<img src=' - whatever word follows this is the quoted file path -
strip quotes.
This would all depend what constitutes a line and other delimiters.
Would a 'line' be everything between <div> tags?
I would preprocess the html first before trying to get the numbers.
I'm sure my crude attempt could not beat a cool Regex solution.
You have a series of lines, like this:
<div id="go" style="position:absolute; left:468px;
top:43px;width:112px; height:110px;z-index:1;
visibility:visible"><img src="images/go.png" width="112"
height="110" border="0"></div>
All you want out of this line is:
468 43 112 110 images/go.png
What is the cool way to write a function to extract these strings?
--
stephen barncard
s a n f r a n c i s c o
- - - - - - - - - - - -
_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution