in reply to Using a Regex to extract tagged content

I know I could use some sort of XML module for this, but I'd rather do it with a regex.

I'd rather repair my car's transmission with a toothbrush but my automechanic just laughed at me when I asked how to go about it.

Update:

For the best toothbrush you can get ahold of, try Regexp::Common. It has a "balanced" method that might help. If you decide to go the mechanic's tools route, use something along the lines of HTML::LinkExtractor, or HTML::SimpleParse, or HTML::TreeBuilder, or HTML::Parser.


Dave

  • Comment on Re: Using a Regex to extract tagged content

Replies are listed 'Best First'.
Re: Re: Using a Regex to extract tagged content
by Fletch (Bishop) on Feb 27, 2004 at 16:24 UTC

    Hey! It's all ball bearings nowadays. It's so simple maybe you need a refresher course. Now get some 3-in-1 oil and some gauze pads, and I'm gonna need 'bout ten quarts of anti-freeze, preferably Prestone. No, no make that Quaker State.

      Fletch (the movie).


      Dave

Re: Re: Using a Regex to extract tagged content
by PodMaster (Abbot) on Feb 28, 2004 at 10:46 UTC
    *cough* how to classify this toothdrill? YAPE::HTML - Yet Another Parser/Extractor for HTML

    MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
    I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
    ** The third rule of perl club is a statement of fact: pod is sexy.