From: ts Date: 2001-08-30T00:11:44+09:00 Subject: [ruby-talk:20536] Re: hml tag removal >>>>> "M" == Marko Schulz writes: >> * it try to separate comment from the rest of the document, i.e. the >> biggest error is here >> >> ######################################################### >> # first we'll shoot all the >> ######################################################### M> What is so bad about that? See my regexp given in [ruby-talk:20477]. This regexp just try to extract a block of text beginning with a '<' (and which is valid) and ending with '>' with another block of text. If your HTML document is valid and not too complex, it's possible to do it like this. But if you want to extract components from the document (like comments, , , ...) you must first parse the document and a regexp is not appropriated for this. Guy Decoux