Have a look here for a like example.
Idea is to identify the first line then log everything till you get a null line.
Ton Diening
Object 'Dragon Flame', Item type: WEAPON
Original owner: ashd
Can be worn on: TAKE WIELD
Item is: NOBITS
Weight: 12, Value: 100000, Rent: 10000, Level: 15
Damage Dice is '8D3' for an average per-round damage of 16.0.
<null line
Affects: WIS +1
INT +2
CON +1
<null line
Spelleffects: fireball
flamestrike
<null line
<null line