I am trying to parse a tab delimited text string (from a TextBox) into values. The idea is a user can copy and paste. I've had a good search around the net and I am struggling.
Here is an example of the textbox string:
Compressed Bright Spodumain 30 Spodumain 840 m3
Compressed Crimson Arkonor 1 Arkonor 8.80 m3
Compressed Crystalline Crokite 867 Crokite 6,771.27 m3
I would like to collect all 4 values but most importantly I must collect the first two "Compressed Bright Spodumain 30". I need to be able to add lines together as well for example if there where 2 "Compressed Bright Spodumain 30" lines it would add the number value together.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…