Hi,
1. welcome to the forum!
2. No idea about PHP, but looks like you want to extract any text between 2 html tags:
<h1 class="fl fBold">bla bala bla...</h1>
-> bla bala bla...
Correct?
Then I would use OFFSET to get the number of the first character of the found string:
...
## tHTMLTEXT holds your html source
## Construct start tag with QUOTES -> <h1 class="fl fBold">
put <h1 class=" & QUOTE & "fl fBold" & QUOTE & ">" into tStartString
put "</h1>" into tEndString
put offset(tStartString,tHTMLTEXT) into tStartChar
put offset(tEndString,tHTMLTEXT) into tEndChar
## "move" offset to the correct position:
add length(tStartString) to tStartChar
put char tStartChar to tEndChar of tHTMLTEXT into tErgebnis
...
Well, this is untested and out of my head, but you get the picture
Check these stacks to get more of the basics of Livecode if neccessary:
http://www.runrev.com/developers/lesson ... nferences/
Best
Klaus