Split by a word (case insensitive)

后端 未结 3 1497
一向
一向 2020-12-11 15:34

If I want to take

\"hi, my name is foo bar\"

and split it on \"foo\", and have that split be case insensitive (split on any of

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-11 16:27

    You can also search for something and get the startposition of the keyword. I would recommend that and cut it with "substring" method out. (I am from C# so i dont know whats the method in this language)

提交回复
热议问题