I can answer your question "book or web" in one word: "No".
Calm down - I'll explain what I mean.
Like you, when I started learning Perl for fun, I found the regex parts incomprehensible. I skimmed them, certain that they were for other people. Then I started on a project that was manipulating text - not a lot, but the skim had taught me enough to know that the old Basic tools weren't as good as what Perl had. This is when I started
learning about regexes, as opposed to
reading about them. I had an application for them, not merely the contrived (and apparently pointless) examples that appeared in the books and on the web pages I read. Then I started having problems. The books told me enough to know that it was possible, but not how to do it. So I started preparing a SOPW. Cutting the code down to a minimum (always a good idea), I solved my own problem. This happened several times (it's, for me, a common occurrence in many areas), until I had solved all my problems and had working code.
To come back to my original "No", I disagree with your use of "or". I would strongly recommend "and" instead - books
and web pages
and usenet
and perldocs
and anything else you can think of. As
RedElk wrote, only you can tell what works best for you. Me? I'm a bookworm, but I'll post SOPW questions here any time the books don't get me where I want to be. Your balance will probably be different from mine. You may prefer different books and web sites from me. But I'd strongly recommend some balance, and equally strongly not trying to do more than raise your own awareness until you have something
you want or need to do with regexes.
Regards,
John Davies
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.