Mastering regex is a life-altering discipline. If you eat meat, you must become a vegetarian, and if you are a vegetarian, you must start eating meat.
Or, you could just "RTFM"... perlretut (for beginners), and perlrequick (for the impatient), and perlre (The Whole Truth).
When you need some diversion from all that, you can also browse the output of perldoc -q regex and perldoc -q regular -- some really choice bits there. | [reply] [d/l] [select] |
There is a book with a very fitting title: "Mastering Regular Expressions" http://oreilly.com/catalog/9781565922570. But it doesn't seem to be aimed at beginners
A better approach for you might be to read one of the essential perl books 'Learning Pearl' or 'Programming Perl', both from O'Reilly. The first one is a tutorial, with exercises, the second a reference work
You also can find introductions on the net, for example on perlmonks (see Tutorials), or on http://perldoc.perl.org/ (essentially the man pages of perl with a nice web frontend)
| [reply] |
| [reply] |