On Feb 5, 2008 10:36 AM, isaac2004 <[EMAIL PROTECTED]> wrote:

> hello, i am trying to parse an html document for links for output, my
> idea is to grab the URL from a form and send the URL to another file
> that does the actual parse process. i am aware that HTML:Parser has a
> built in for this, but i want to learn regex better.

Let me know if your technique helps you to learn regular expressions.
You will also have the chance to learn how complex a data format HTML
is, and why parsers are more complex than simple pattern matches.

For other people who want to learn more about regular expressions, I'd
recommend the book "Mastering Regular Expressions" by Jeffrey Friedl.
REs are a small language of their own, worthy of study. This book has
interesting, useful, and practical information for any programmer who
works with regular expressions. In fact, when the book first came out,
everyone was expecting that any "book" on REs would be a pocket
reference. Everyone was stunned at how much of this fat book was news
even to the experts. (Several bugs and shortcomings of Perl's RE
engine were fixed as a direct result of that first edition.) I'm sure
that anyone who frequently uses Perl's patterns, or any other regular
expressions, will find this book informative today.

    http://regex.info/

Cheers!

--Tom Phoenix
Stonehenge Perl Training

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to