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
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |