in reply to HTML HELP

Thanks for the info.. I ran both scripts and still get the same thing. It prints out all the text of the html document and matchs nothing.. weird

Replies are listed 'Best First'.
RE: Re: HTML HELP
by chromatic (Archbishop) on May 18, 2000 at 05:22 UTC
    Your original prints out the whole thing because, in your match statement, you print the whole of the matching line. Since the whole document is put into one line, the whole thing prints.

    In my program, I only print out what matches that particular regex, if and only if anything matches. It won't ever print out anything more than what's specified.