remove value from comma separated values string

前端 未结 9 1823
不知归路
不知归路 2020-12-30 05:27

I have a csv string like this \"1,2,3\" and want to be able to remove a desired value from it.

For example if I want to remove the value: 2, the output string should

9条回答
  •  一生所求
    2020-12-30 06:18

    guess im too slow but here is what i would do

    
    

    adding , before and after the string ensure that u only remove the exact string u want

提交回复
热议问题