split not working correctly

前端 未结 4 849
误落风尘
误落风尘 2021-01-18 16:21

I am trying to save the groups in a string to an array so that I can use them in individual variables if I need to. For this I use split but for some reason I only

4条回答
  •  清歌不尽
    2021-01-18 17:09

    Just replace your line:

    ultimate_array = string_final.split("#$"); 
    

    with:

    ultimate_array = string_final.Split(new string[] { "#$" }, StringSplitOptions.None);
    

    I hope your problem is resolved...

提交回复
热议问题