Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: HTML::Parser / Regex

by AnomalousMonk (Archbishop)
on May 26, 2017 at 21:18 UTC ( [id://1191326]=note: print w/replies, xml ) Need Help??


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:  <%-{-{-{-<

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1191326]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2024-04-18 03:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found