Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: regex to match "---" followed by new line

by sundialsvc4 (Abbot)
on Jun 29, 2017 at 17:36 UTC ( #1193850=note: print w/replies, xml ) Need Help??


in reply to Re: regex to match "---" followed by new line
in thread regex to match "---" followed by new line

I suspect that you are exactly right ... and, if the OP will please post a fragment of the file-of-interest we could know for sure.

Probably the best YAML-processing module would be (IMHO) YAML::XS.   Just point it at a file and it turns it into a Perl data structure, or vice-versa.   It leverages an industry-standard binary library to do the work very efficiently, and it knows about all the standards that have evolved over time.

A search of http://search.cpan.org will today produce 1714 module-hits for the keyword “YAML.”

  • Comment on Re^2: regex to match "---" followed by new line

Replies are listed 'Best First'.
Re^3: regex to match "---" followed by new line
by Anonymous Monk on Jun 30, 2017 at 15:34 UTC
    > A search of http://search.cpan.org will today produce 1714 module-hits for the keyword “YAML.

    How is this helpful, to anyone....?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1193850]
help
Chatterbox?
[LanX]: it was just after Trump-ageddon and the Americans thought I'm ridiculing them ;)
Discipulus was not the title a bit provoking? ;=)
[LanX]: I have a degree in cynism. ..
LanX is the PROVO-KING

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (8)
As of 2017-11-20 19:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (292 votes). Check out past polls.

    Notices?