In row, first item is index.
Second item, which is underlined, is product name.
Third item is quantity of product, and fourth is price per product.
Fifth item, which is underlined, is total price. Others are extra.
I need second item and fifth item.
If have any good idea, please share that. Thanks.
Its obivously seperated by spaces, so if you split, you grab 2nd, 3rd, 5th item from resulting array. Do this in a loop over an array of the lines, for this need split the entire thing by CrLf first of course.
Sorry, you are right, so we have to split on āSupportSubscriptionā first, but this makes it not so beautiful any more. Iād look at the process now if there is another format available.
I will remain and save first item to fifth item with regex like this:
[0-9]+ [a-zA-Z0-9ź°-ķ£ ]+ [0-9]+ ([0-9]{1,3},)([0-9]{1,3}) ([0-9]{1,3},)([0-9]{1,3})
Then, I will use your idea.
It is tiresome, but I donāt know how to extract at once.
@ysshin.temp - If the 2nd string would have ended consistently like the first 3 rows, I think there is a possibility. Since it is ending with 6 followeup by another integer makes the pattern tougher.