2
I wonder if you have how to use the split to make only one division, for example, I have the following text:: dia_24_06_18.
I wanted you to separate by _ in the matrix like this:
[0] - dia
[1] - 24_06_18
2
I wonder if you have how to use the split to make only one division, for example, I have the following text:: dia_24_06_18.
I wanted you to separate by _ in the matrix like this:
[0] - dia
[1] - 24_06_18
Browser other questions tagged c# split
You are not signed in. Login or sign up in order to post.
Yes Luisa: that way:
string c = "dia_24_06_18";var res = c.Split(new[] { '_' }, 2, StringSplitOptions.None);will beres[0]andres[1]Example: https://dotnetfiddle.net/wXSimw– novic