Parse lines from text.