Start by defining what you want for output. I presume you want some kind of data structure? What would the data structure be for the snippet you provided? How about you modify the following to be what you want? Then we can help you write the parser. Or maybe you'll be able to do it on your own.

[ # First quarter [ 'ORL 13 Sauls kicked off 71 yards from the ORL30.', 'ASH 22 Noa returned the ball 14 yards to the ASH13. Tackled +by ORL 82 Ferguson.' ], 'Possession to Asheville.', [ # First dashes [ 10, 'ASH13', '14:30', [ 'ASH 48 Hopper ran around right end for 1 yard.', 'Tackled by ORL 94 Whiting, assisted by ORL 54 Schacht. +', ], ], [ 9, 'ASH14', '13:59', [ 'ASH 23 Theriot ran inside the left guard for 1 yard.', 'Tackled by ORL 96 Dugger.', ] ], [ 8, 'ASH15', '13:25', [ 'ASH 18 Hall pass completed to 23 Theriot for 10 yards. +', 'Tackled by ORL 96 Dugger.', ] ] ], [ # Second dashes [ 10, 'ASH25', '12:50', [ 'ASH 38 Dollinger ran around right end for 6 yards.', 'Tackled by ORL 95 Gonzalez, assisted by ORL 54 Schacht +.', 'Key block delivered by ASH 77 Cassell.', ] ], [ 4, 'ASH31', '12:05', [ 'ASH 18 Hall pass was overthrown, intended for 81 Perry +.', 'Penalty: ORL - Offsides.', ] ] ] ]

Keep in mind some of us (incl myself) don't know football.


In reply to Re: Parsing a Log File by ikegami
in thread Parsing a Log File by PrimeLord

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.