in reply to Simple line parse question
Why do you think the solution you have provided is inadequate to the task? Maybe if you tell us something of the bigger problem we can help you find a better higher level solution?