text parsing question
stephenREVOLUTION at barncard.com
Fri Jun 9 16:09:32 CDT 2006
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 -
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;
>visibility:visible"><img src="images/go.png" width="112"
>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?
s a n f r a n c i s c o
- - - - - - - - - - - -
More information about the use-livecode