Re: HTML processing
Bill Yerazunis <[email protected]>
| Newsgroups | gmane.mail.spam.crm114 |
|---|---|
| Message-ID | <[email protected]> |
From: "Trever L. Adams" <[email protected]> Yes, you *can* loop CRM114 forever, or spawn single-shot demons. Both techniques are documented in the big manual. Especially see the "Beast with a Thousand Young" test, where it turns out that we can spawn with only milliseconds of overhead (and write-append to files fast enough that the file system itself loses bytes). Ger Hobbelt wrote: > Well, seems to me Bill already did that part of the job for you already= :-) Not quite. There's one bug in the script I gave you (I realized it this morning walking in to work), and one typo. The typo is easy: it plucks out the alt and img, it should pluck out alt and title, so change: match <nocase> [:whole_img_tag:] /img=[[:graph:]]*/ (:img_txt:) to match <nocase> [:whole_img_tag:] /title=[[:graph:]]*/ (:img_txt:) The bug is also easy to fix. The ISOLATE statement in the second stanza (the one dealing with IMG tags and which plucks out only the "title" and "alt" fields) actually needs to be split into two so both will initialize to NULL strings; change: isolate (:img_txt: :alt_txt:) to isolate (:img_txt:) // isolate (:alt_txt:) // and that might even be all you need to do. There are some optimizations you can also do, but those are unnecessary for now. (they are to use "fromend" flags to skip over the already processed text for each pass. - Bill Yerazunis ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/