in reply to Re: regex splitting
in thread regex splitting

Thanks a lot.What must I do to master regex??

Replies are listed 'Best First'.
Re^3: regex splitting
by graff (Chancellor) on Nov 19, 2009 at 23:12 UTC
    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.

Re^3: regex splitting
by jethro (Monsignor) on Nov 19, 2009 at 23:28 UTC
    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)

Re^3: regex splitting
by keszler (Priest) on Nov 19, 2009 at 23:11 UTC