Answer the question
In order to leave comments, you need to log in
How to extract data from text?
If we receive data only in plain text format by type:
150
Cool Goods
Blah Blah Blah
Answer the question
In order to leave comments, you need to log in
The question is not very clear. If there is always such an order (price-product-description), then you can type
var discription=str.split('\n'),
price=discription[0],
title=discription[1],
comment=discription[2]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question