Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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

Replies are listed 'Best First'.
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 musing on the Monastery: (6)
As of 2016-06-30 10:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (392 votes). Check out past polls.