in reply to HTML::Parser / Regex

... I still could't quite pick up how this string-matching works.

If you haven't already seen them, please take a look at perlrequick, perlretut (and, of course, at perlre for the hard core stuff), and at Pattern Matching, Regular Expressions, and Parsing in the monastery's own Tutorials.

Update: Oh, and please let us know the version of Perl you're working with so we can know the regex features available to you!


Give a man a fish:  <%-{-{-{-<

Replies are listed 'Best First'.
Re^2: HTML::Parser / Regex
by MissPerl (Sexton) on May 27, 2017 at 06:11 UTC
    Hi AnomalousMonk,

    Thank you for all those links. I think I have overlooked most of the links. I'm going to have a look on it.

    Also I am using perl v5.8.8. It was pretty old but yea..
      ... using perl v5.8.8. ... pretty old ...

      Not to worry. The example code I posted here runs under 5.8.9. It's intentionally ambitious; I hope you will come back to it repeatedly as you read more about Perl, regexes, etc.


      Give a man a fish:  <%-{-{-{-<