Mark Mielke wrote:
On Mon, Dec 02, 2002 at 09:27:28AM +1000, King, Jason G wrote:

Alternatively, just use HTML::Parser or HTML::TokeParser and you can
handle arbitrarily complex body tags without having to worry about what
your input is.

I second this suggestion. It is highly doubtful that a single REGEXP that
takes up less than 80 characters of text is able to properly parse even
limited HTML. Why re-invent the wheel when somebody else has already done
all the hard work, far better, and well researched, than you (the original
poster, and the person who followed up with a regexp) have?
For general cases, I would probably agree.  For limited, well-known or
simple cases - I'd use a RE.  I think the original example of this thread
fell into the later (unless I mis-read it).  :)

--
  ,-/-  __      _  _         $Bill Luebkert   ICQ=162126130
 (_/   /  )    // //       DBE Collectibles   Mailto:[EMAIL PROTECTED]
  / ) /--<  o // //      http://dbecoll.tripod.com/ (Free site for Perl)
-/-' /___/_<_</_</_     Castle of Medieval Myth & Magic http://www.todbe.com/

_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to