http://www.perlmonks.org?node_id=180971


in reply to Re: Can this be parsed ?
in thread Can this be parsed ?

Names CAN have embeded spaces, and I THINK that the unknown field always starts with [^A-Z] ...

Hmm, unless you're certain about that [^A-Z] thing, it sounds like you're screwed.

There's no clear way to parse records that don't contain a "prependition" because you can never be sure where the name ends, consider the most simple example...

A B

There are two totally valid parsings for this.