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

Re^4: parse file per customized separator / block / metadata

by raiten (Acolyte)
on Mar 25, 2010 at 22:02 UTC ( #830978=note: print w/ replies, xml ) Need Help??


in reply to Re^3: parse file per customized separator / block / metadata
in thread parse file per customized separator / block / metadata

Thanks a lot for this code and sorry for the delayed feedback.

I try to made some tests today and the code covers most needs. The only point which fails is matching block on /^[=]+$/ (note this regexp is not accepted for block matching). my $lookahead_regex = qr/\w+[=:]/; or my $lookahead_regex = qr/[=:][=:][=:]+/; both fail.

I can't manage to match block separator as 'headerX:' (work) AND '=========[=]+' (don't work for now)

advices ? I'll try to continue to work on it in the next days.

Thanks a lot


Comment on Re^4: parse file per customized separator / block / metadata
Select or Download Code
Re^5: parse file per customized separator / block / metadata
by repellent (Priest) on Mar 26, 2010 at 05:34 UTC
    What test case(s) do you have that failed? Do provide it.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2014-09-02 00:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (18 votes), past polls