SamCG has asked for the wisdom of the Perl Monks concerning the following question:
Initially I broke the email into an array by splitting on \s{15,}, but this isn't ideal, and drops some of the values. I'm considering splitting on the colons, but I'm not convinced this is a great idea and seems to lead to more headaches. Any ideas for a somewhat robust, straightforward way to parse this?
Security : BULGY N V- + + + + + + + + + + Item Overridden : Earnings Per Share + + + + + + + + + + Initial Value : (USD) + + + + + + + + + + Current Value : () + + + + + + + + + + Overridden Value : 160 (USD) + + + + + + + + + + Effective : 08/20/1999 through 08/20/2000 + + + + + + + + + + Override Type : Data SecurityID : 1076665 Sedol : 2451234 Cusip : N66696606 ISIN : NL0006122988
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Parsing semi-erratic text
by ikegami (Patriarch) on Aug 23, 2006 at 19:39 UTC | |
by SamCG (Hermit) on Aug 23, 2006 at 19:50 UTC | |
by ikegami (Patriarch) on Aug 23, 2006 at 20:04 UTC | |
|
Re: Parsing semi-erratic text
by GrandFather (Saint) on Aug 23, 2006 at 21:07 UTC |