Consider this radically different approach. Store your data in a standard format, such as XML, then:
In reply to Re: Parsing text sections by toolic in thread Parsing text sections by betacentauri