Not sure how my other reply ended up on the wrong thread! Take two... Here is a different approach:
If your source is XHTML you can treat it as XML, and go through nodes that way. If it's not XHTML, look at this tool: http://www.ibm.com/developerworks/xml/library/x-tiptidy/index.html You might be able to command-line make HTML be more friendly, then treat it as XML once you've tidied it up. _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode