text parsing question
Mark Smith
mark at maseurope.net
Fri Jun 9 18:35:35 EDT 2006
I'd do something like:
function getValues tLine
replace "left:" with "±" in tLine
replace "top:" with "±" in tLine
replace "width:" with "±" in tLine
replace "height:" with "±" in tLine
replace "px;" with "±" in tLine
return item 2 to 5 of tLine
end getValues
Mark
On 9 Jun 2006, at 21:51, Josh Mellicker wrote:
> 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?
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
More information about the use-livecode
mailing list