I have string format, example "abc || def || igh"
.
I want to cut into: abc, def,igh, but when i try use split getting the error
"Too many characters in character literal error"
Can somebody help me? Thanks All.
Asked
Active
Viewed 495 times
1 Answers
0
You can use char array.Example:
char[] delimiterChars = { ' ', ',', '.', '?', ':' };
after
text.Split(delimiterChars)

Tagi
- 302
- 4
- 17