MatchWithin

Mark Wieder mwieder at ahsoftware.net
Mon Nov 27 11:43:11 CST 2006


Jim-

> Depending on the source, for most HTML pages an extraction function should
> look for unmatched tags and tags that appear between comment tags (thus not
> part of the visible page)


> Unmatched tags can be detected by:

> [1] if the start tag is in any of the extracted segments
> [2] if the end tag is in the 'pRawText' after extraction

> Hope this adds to the thread

Thanks. In my case, the error condition is met by returning an empty
string, but yes, in a more rigorous case the error checking would
indeed be useful. And I like the conciseness of your matchChunk
implementation.

-- 
-Mark Wieder
 mwieder at ahsoftware.net




More information about the use-livecode mailing list