Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
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?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (2)
As of 2017-09-23 02:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (270 votes). Check out past polls.

    Notices?