text parsing question
Didier SANZ
didiersanz at gmail.com
Sat Jun 10 08:52:36 EDT 2006
What about this :
(put your html code into myVar)
-- must declares variables
put empy into tLeft
put empy into tTop
put empy into tWidth
put empy into tHeight
put empy into tUrl
-- use regEx with matchText
get matchText(myVar,"<div.*left:([0-9]+).+top:([0-9]+).+width:
([0-9]+).+height:([0-9]+).+src=\"([a-z]*\/[a-z]*\.[a-z]*)
\"",tLeft,tTop,tWidth,tHeight,tUrl)
put tLeft&&tTop&&tWidth&&tHeight&&tUrl
I'm sure it can be optimized, but it works...
Didier
Le 9 juin 06 à 22:51, Josh Mellicker a écrit :
>
> <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
More information about the use-livecode
mailing list