-2
Good morning, everyone. I have the following string:
string frutas = "f1,f2,f3,f4,...";
Basically I want him to replace the word that is between 3°and 4°; comma with something. for example: apple
Thus remaining:
f1,f2,maçã,f4,..
How can I do?
Try using split(), https://msdn.microsoft.com/pt-br/library/tabh47cf(v=vs.110). aspx makes the changes you want in the vector and then puts it back together again
– Pbras
what have you tried to do? you can try it with split (as mentioned above), substring, regex.. but you need to show something so we can help..
– rLinhares
And what differs from your previous question?
– Leandro Angelo
I will try the split. I was more specific in this question.
– Luiz Nascimento