in reply to extract data from line

What have you tried? What are the constraints on the data? There are lots of ways to do it. You could use split, you could use a regular expression, you could do all sorts of things.