Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: Grab everything not matched by regexp

by molecules (Monk)
on Feb 23, 2010 at 19:52 UTC ( #824931=note: print w/ replies, xml ) Need Help??


in reply to Re: Grab everything not matched by regexp
in thread Grab everything not matched by regexp

Xiong's experience sounds familiar. I recommend you consider his suggestions.

I would also recommend studying the perldoc for regular expressions.

Named captures are also very helpful. If you can install Perl 5.10.1, I would recommend using them. Perl 5.10.0 has a memory leak associated with using them, but you might get away with it. Anyway, 5.10.0 is the first release that allows using named-captures.

UPDATE:

You probably also will want to look at Parse::RecDescent as mentioned by Anonymous Monk above.


Comment on Re^2: Grab everything not matched by regexp

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (8)
As of 2015-07-07 06:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (87 votes), past polls