itemDelimiter

Thomas McGrath III 3mcgrath at adelphia.net
Thu Feb 12 11:02:09 EST 2004


Brian

Is the script below missing a - put "</title>" into endTag?
If so then I can get past that part to then try and grasp the next part 
of it.
I am trying to understand it and can't figure it out yet.....

Tom

On Feb 12, 2004, at 8:14 AM, Brian Yennie wrote:

> You've got a couple options (at least):
>
> 1) Use regex, see matchText and match on something like 
> "<text>(.*)</text>"
> 2) Use offset(), as you imagined, something like:
>
> put "<title>" into startTag
> put offset(startTag, theHTML) into startOffset
> if (startOffset > 0) then
>   put offset(endTag, theHTML, startOffset + length(startTag) - 1) into 
> endOffset
>   if (endOffset > 0) then
>       put char startOffset to (startOffset + endOffset - 1) of theHTML 
> into theTitle
>   end if
> end if
>
>
> HTH
>
> - Brian
>
>> I was wondering if the itemDelimiter can be more than one character? 
>> I mean instead of "," or ":" can it be "<!--display paragraphs-->" ?
>> If the answer is NO then can someone help me understand how to sift 
>> through the html below to just extract the title text and the 2 
>> paragraph texts? I know I can offset("<title>") field "HTML" but then 
>> what can I do to extract the text after that?
>> It may be obvious but for the life of me I can't 'see' it.
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
>

Thomas J. McGrath III
SCS
1000 Killarney Dr.
Pittsburgh, PA 15234
412-885-8541



More information about the use-livecode mailing list