Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Interesting Regex Question

by jeroenes (Priest)
on Jul 02, 2001 at 14:48 UTC ( #93151=note: print w/ replies, xml ) Need Help??


in reply to Interesting Regex Question

There is a package by Dana Jacobsen that is very useful for these kind of things. I use it very often. It's not under maintenance though. You can find it here.

If you want to write it yourself, you have to write a real parser. Try Parse::RecDescent. If it's always in the newline format as you posted it, try to split on /\s*,\s*\n/.

Cheers,

Jeroen
"We are not alone"(FZ)


Comment on Re: Interesting Regex Question

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (15)
As of 2015-07-07 21:57 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 (93 votes), past polls