splitting a string

前端 未结 6 1971
不思量自难忘°
不思量自难忘° 2021-01-26 16:52

i have the following string:

http://pastebin.com/d29ae565b

i need to separate each value and put it in an array. typically it would be done by \".split\". howeve

6条回答
  •  粉色の甜心
    2021-01-26 17:39

    Looking at that (without copy/pasting to see how it's actually written), I'd think you could first Split() by the newline character, then Split() each string in that array using the tab character.

    EDIT: Oh, you essentially want to pivot the table and then return the results in order. I'm writing the test code now and will post it once I'm done. (It'll be C#, though.)

提交回复
热议问题